Merge pull request #901 from hashicorp/use-deplist-in-make-updatedeps
Makefile: new deps strategy fixes deps in branches
This commit is contained in:
commit
1e03892ff6
11
Makefile
11
Makefile
|
@ -32,14 +32,15 @@ testrace: generate
|
||||||
# updatedeps installs all the dependencies that Terraform needs to run
|
# updatedeps installs all the dependencies that Terraform needs to run
|
||||||
# and build.
|
# and build.
|
||||||
updatedeps:
|
updatedeps:
|
||||||
$(eval REF := $(shell sh -c "\
|
go get -u github.com/phinze/deplist
|
||||||
git symbolic-ref --short HEAD 2>/dev/null \
|
|
||||||
|| git rev-parse HEAD"))
|
|
||||||
go get -u github.com/mitchellh/gox
|
go get -u github.com/mitchellh/gox
|
||||||
go get -u golang.org/x/tools/cmd/stringer
|
go get -u golang.org/x/tools/cmd/stringer
|
||||||
go get -u golang.org/x/tools/cmd/vet
|
go get -u golang.org/x/tools/cmd/vet
|
||||||
go get -f -u -v ./...
|
go list github.com/hashicorp/terraform/... \
|
||||||
git checkout $(REF)
|
| xargs -n 1 deplist -s \
|
||||||
|
| grep -v github.com/hashicorp/terraform \
|
||||||
|
| sort -u \
|
||||||
|
| xargs go get -f -u -v
|
||||||
|
|
||||||
# vet runs the Go source code static analysis tool `vet` to find
|
# vet runs the Go source code static analysis tool `vet` to find
|
||||||
# any common errors.
|
# any common errors.
|
||||||
|
|
Loading…
Reference in New Issue