-
Notifications
You must be signed in to change notification settings - Fork 1k
gps: source cache: protobuf integration #1127
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ exclude_paths: | |
- internal/gps/_testdata | ||
- cmd/dep/testdata | ||
- testdata | ||
- internal/gps/internal/pb | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,11 @@ | |
[[constraint]] | ||
name = "github.com/boltdb/bolt" | ||
version = "1.0.0" | ||
|
||
[[constraint]] | ||
name = "github.com/jmank88/nuts" | ||
version = "0.2.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have to vendor this if we don't want to pollute. Usages are few enough to copy in. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm fine with bringing it in |
||
|
||
[[constraint]] | ||
name = "github.com/golang/protobuf" | ||
branch = "master" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
set -e | ||
|
||
go build ./hack/licenseok | ||
find . -path ./vendor -prune -o -type f -name "*.go"\ | ||
find . -path ./vendor -prune -o -regex ".+\.pb\.go$" -prune -o -type f -regex ".*\.\(go\|proto\)$"\ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The intention was to include There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i have no immediate ideas about better ways of doing this; i'm fine with a slightly wonky regex. |
||
-printf '%P\n' | xargs ./licenseok |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright 2017 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
// Package pb provides generated Protocol Buffers for cache serialization. | ||
package pb | ||
|
||
//go:generate protoc --go_out=. source_cache.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like
**.pb.go
(if legal here) would be more general and continue to work as things change.