Don't cause a new fake gopath to call dep

This commit is contained in:
Jason A. Donenfeld 2018-05-23 17:30:35 +02:00
parent 0b647d1ca7
commit 8a92a9109a

View file

@ -22,7 +22,7 @@ GO_IMPORT_PATH := git.zx2c4.com/wireguard-go
ln -s ../../.. .gopath/src/$(GO_IMPORT_PATH) ln -s ../../.. .gopath/src/$(GO_IMPORT_PATH)
touch $@ touch $@
vendor/.created: Gopkg.toml Gopkg.lock .gopath/.created vendor/.created: Gopkg.toml Gopkg.lock | .gopath/.created
command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep
cd .gopath/src/$(GO_IMPORT_PATH) && dep ensure -vendor-only -v cd .gopath/src/$(GO_IMPORT_PATH) && dep ensure -vendor-only -v
touch $@ touch $@
@ -36,7 +36,7 @@ install: wireguard-go
clean: clean:
rm -f wireguard-go rm -f wireguard-go
update-dep: update-dep: | .gopath/.created
command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep command -v dep >/dev/null || go get -v github.com/golang/dep/cmd/dep
cd .gopath/src/$(GO_IMPORT_PATH) && dep ensure -update -v cd .gopath/src/$(GO_IMPORT_PATH) && dep ensure -update -v