Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade github.com/golang/mock and mockgen from 1.3.x to 1.6.0 #3458

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ misc/certs/ca-certificates.crt:
docker run "amazon/amazon-ecs-agent-cert-source:make" cat /etc/ssl/certs/ca-certificates.crt > misc/certs/ca-certificates.crt

gogenerate:
go generate -x ./agent/...
$(MAKE) goimports

gogenerate-init:
PATH=$(PATH):$(shell pwd)/scripts go generate -x ./ecs-init/...
PATH=$(PATH):$(shell pwd)/scripts go generate -x ./agent/... ./ecs-init/...
$(MAKE) goimports

# 'go' may not be on the $PATH for sudo tests
Expand Down Expand Up @@ -349,20 +348,18 @@ install-golang:
./scripts/install-golang.sh

.get-deps-stamp:
go get github.com/golang/mock/mockgen
cd "${GOPATH}/src/github.com/golang/mock/mockgen" && git checkout 1.3.1 && go get ./... && go install ./... && cd -
go get golang.org/x/tools/cmd/goimports
go install github.com/golang/mock/[email protected]
go install golang.org/x/tools/cmd/[email protected]
GO111MODULE=on go install github.com/fzipp/gocyclo/cmd/[email protected]
GO111MODULE=on go install honnef.co/go/tools/cmd/[email protected]
touch .get-deps-stamp

get-deps: .get-deps-stamp

get-deps-init:
go get github.com/golang/mock/mockgen
cd "${GOPATH}/src/github.com/golang/mock/mockgen" && git checkout 1.3.1 && go get ./... && go install ./... && cd -
go install github.com/golang/mock/mockgen@v1.6.0
go install golang.org/x/tools/cmd/[email protected]
GO111MODULE=on go install github.com/fzipp/gocyclo/cmd/[email protected]
go get golang.org/x/tools/cmd/goimports
GO111MODULE=on go install honnef.co/go/tools/cmd/[email protected]

amazon-linux-sources.tgz:
Expand Down
138 changes: 69 additions & 69 deletions agent/api/mocks/api_mocks.go

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions agent/app/factory/mocks/factory_mocks.go

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

16 changes: 8 additions & 8 deletions agent/app/mocks/credentials_mocks.go

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

12 changes: 6 additions & 6 deletions agent/asm/factory/mocks/factory_mocks.go

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

Loading