Skip to content

Commit

Permalink
[FAB-12659] Revert dep change made in FAB-12634
Browse files Browse the repository at this point in the history
dep install script is not available for s390.

Switch back to build approach like it was pre-FAB-12634.

Change-Id: I26e9e0d7aedd20ec49dce75bf3c07258d490948a
Signed-off-by: David Enyeart <[email protected]>
  • Loading branch information
denyeart committed Oct 31, 2018
1 parent f1c5da6 commit 7c78a24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gotools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ gotool.golint:
# Lock to a versioned dep
gotool.dep: DEP_VERSION ?= "v0.5.0"
gotool.dep:
@curl https://raw.githubusercontent.com/golang/dep/master/install.sh \
| INSTALL_DIRECTORY=$(abspath $(GOTOOLS_BINDIR)) DEP_RELEASE_TAG=$(DEP_VERSION) sh
@GOPATH=$(abspath $(GOTOOLS_GOPATH)) go get -d -u github.com/golang/dep
@git -C $(abspath $(GOTOOLS_GOPATH))/src/github.com/golang/dep checkout -q $(DEP_VERSION)
@echo "Building github.com/golang/dep $(DEP_VERSION) -> dep"
@GOPATH=$(abspath $(GOTOOLS_GOPATH)) GOBIN=$(abspath $(GOTOOLS_BINDIR)) go install -ldflags="-X main.version=$(DEP_VERSION) -X main.buildDate=$$(date '+%Y-%m-%d')" github.com/golang/dep/cmd/dep
@git -C $(abspath $(GOTOOLS_GOPATH))/src/github.com/golang/dep checkout -q master

# Default rule for gotools uses the name->path map for a generic 'go get' style build
gotool.%:
Expand All @@ -60,4 +63,3 @@ gotool.%:
$(GOTOOLS_BINDIR)/%:
$(eval TOOL = ${subst $(GOTOOLS_BINDIR)/,,${@}})
@$(MAKE) -f gotools.mk gotool.$(TOOL)

0 comments on commit 7c78a24

Please sign in to comment.