Skip to content

Commit

Permalink
make: Mkdir bin path if empty (always empty on cross_build CI step).
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka committed Sep 18, 2018
1 parent dca749e commit ebb58c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ ALERTMANAGER_VERSION ?=v0.15.2
# $(1): Install path. (e.g github.com/golang/dep/cmd/dep)
# $(2): Tag or revision for checkout.
define fetch_go_bin_version
mkdir -p $(BIN_DIR)

@echo ">> fetching $(1)@$(2) revision/version"
@if [ ! -d "$(TMP_GOPATH)/src/$(1)" ]; then \
GOPATH=$(TMP_GOPATH) go get -d -u $(1); \
Expand Down

0 comments on commit ebb58c2

Please sign in to comment.