-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* manager * removed proto_vendor * changelog * cloudbuild folder nonsense * added more comments about folder name * fixed check code-gen * fixed makefile * copy tests are passing * PR comments * updated comments * renamed to anyvendor * got tests passing with new json modules * regenerated * formatting ftw * fixed make target * version of cloud-builder * fixed tests * comment weird capital pathing * added comments and fixed up tests * removed weird import * go.sum diff * try without git username * pr comments
- Loading branch information
1 parent
8053484
commit e14cd3a
Showing
29 changed files
with
1,608 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 28 additions & 6 deletions
34
protodep/protodep.pb.validate.go → anyvendor/anyvendor.pb.validate.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
syntax = "proto3"; | ||
package anyvendor; | ||
option go_package = "github.com/solo-io/anyvendor/anyvendor"; | ||
|
||
import "validate/validate.proto"; | ||
|
||
/* | ||
Config object used for running anyvendor. The top level config consists of 2 main sections. | ||
Local is a set of matchers will be taken directly from the local module, and vendored in. | ||
Imports is a list of import types which will be run, and then vendored. | ||
*/ | ||
message Config { | ||
Local local = 1; | ||
|
||
repeated Import imports = 2; | ||
} | ||
|
||
message Import { | ||
oneof ImportType { | ||
option (validate.required) = true; | ||
GoModImport go_mod = 2; | ||
} | ||
} | ||
|
||
// A set of glob patters to be grabbed from the current module | ||
message Local { | ||
repeated string patterns = 1 [(validate.rules).repeated = { min_items: 1}]; | ||
} | ||
|
||
/* | ||
A go mod import represents a set of imports from a go module | ||
patterns is a set glob matchers to find files in a go module. | ||
package is the name of the go module which these should be pulled from. | ||
The GoModImport uses the command `go list -f '{{.Path}}' -m all` to find | ||
all of the package names | ||
*/ | ||
message GoModImport { | ||
repeated string patterns = 1 [(validate.rules).repeated = { min_items: 1}]; | ||
string package = 2 [(validate.rules).string = { min_len: 1}]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
changelog: | ||
- type: NEW_FEATURE | ||
description: Create API for protodep. | ||
issueLink: https://github.com/solo-io/protodep/issues/1 | ||
description: Create API for anyvendor. | ||
issueLink: https://github.com/solo-io/anyvendor/issues/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changelog: | ||
- type: NEW_FEATURE | ||
description: Expose anyvendor as a library. | ||
issueLink: https://github.com/solo-io/anyvendor/issues/3 |
Oops, something went wrong.