Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #183 from Netflix/lock-protobuf-generator
Browse files Browse the repository at this point in the history
Lock protobuf generator
  • Loading branch information
sargun authored Oct 2, 2018
2 parents 6c01ab2 + fe1ed48 commit 741621e
Show file tree
Hide file tree
Showing 39 changed files with 16,546 additions and 3,536 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ TEST_OUTPUT ?= test.xml
TEST_DOCKER_OUTPUT ?= test-standalone-docker.xml
GOIMPORTS := $(GOPATH)/bin/goimports
GOVENDOR := $(GOPATH)/bin/govendor
PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go

SHORT_CIRCUIT_QUITELITE := true

Expand Down Expand Up @@ -117,7 +118,7 @@ push-titus-agent: titus-agent

PROTOS := vendor/github.com/Netflix/titus-api-definitions/src/main/proto/netflix/titus/titus_base.proto vendor/github.com/Netflix/titus-api-definitions/src/main/proto/netflix/titus/titus_agent_api.proto vendor/github.com/Netflix/titus-api-definitions/src/main/proto/netflix/titus/agent.proto
.PHONY: protogen
protogen: $(PROTOS) | $(clean) $(clean-proto-defs)
protogen: $(PROTOS) $(PROTOC_GEN_GO) | $(clean) $(clean-proto-defs)
mkdir -p api
protoc -Ivendor/github.com/Netflix/titus-api-definitions/src/main/proto/ --go_out=api/ $(PROTOS)

Expand All @@ -127,6 +128,8 @@ clean-proto-defs: | $(clean)


## Binary dependencies
$(PROTOC_GEN_GO): vendor/vendor.json vendor/github.com/golang/protobuf/protoc-gen-go
govendor install ./vendor/github.com/golang/protobuf/protoc-gen-go

$(GOIMPORTS):
go get golang.org/x/tools/cmd/goimports
Expand Down
490 changes: 389 additions & 101 deletions api/netflix/titus/agent.pb.go

Large diffs are not rendered by default.

822 changes: 663 additions & 159 deletions api/netflix/titus/titus_agent_api.pb.go

Large diffs are not rendered by default.

559 changes: 403 additions & 156 deletions api/netflix/titus/titus_base.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (c *Config) getUserProvided(taskInfo *titus.ContainerInfo) map[string]strin
// ENV from the deprecated environmentVariable field that had both user and Titus provided values merged
func getUserProvidedDeprecated(taskInfo *titus.ContainerInfo) map[string]string {
vars := make(map[string]string)
for _, env := range taskInfo.GetEnvironmentVariable() {
for _, env := range taskInfo.GetEnvironmentVariable() { // nolint: megacheck
vars[env.GetName()] = env.GetValue()
}
return vars
Expand Down
2 changes: 1 addition & 1 deletion executor/runtime/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (c *Container) UploadDir(namespace string) string {
func (c *Container) Process() (entrypoint, cmd []string, err error) {
if c.TitusInfo.EntrypointStr != nil {
// deprecated (old) way of passing entrypoints as a flat string. We need to parse it
entrypoint, err = dockershellparser.ProcessWords(c.TitusInfo.GetEntrypointStr(), []string{})
entrypoint, err = dockershellparser.ProcessWords(c.TitusInfo.GetEntrypointStr(), []string{}) // nolint: megacheck
if err != nil {
return nil, nil, err
}
Expand Down
3 changes: 0 additions & 3 deletions vendor/github.com/golang/protobuf/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 0 additions & 43 deletions vendor/github.com/golang/protobuf/proto/Makefile

This file was deleted.

46 changes: 35 additions & 11 deletions vendor/github.com/golang/protobuf/proto/clone.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 741621e

Please sign in to comment.