From ce65baae323921d4601458790f0fb93ad3d1bd94 Mon Sep 17 00:00:00 2001 From: Hongxin Liang Date: Tue, 21 Jan 2020 10:21:31 +0100 Subject: [PATCH] depend on download_tooling --- Makefile | 3 +-- boilerplate/lyft/golang_test_targets/download_tooling.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 211f908..5e7673a 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,7 @@ compile: mkdir -p ./bin go build -o pflags ./cli/pflags/main.go && mv ./pflags ./bin -gen-config: - which pflags || (go get github.com/lyft/flytestdlib/cli/pflags) +gen-config: download_tooling @go generate ./... .PHONY: test_unit_codecov diff --git a/boilerplate/lyft/golang_test_targets/download_tooling.sh b/boilerplate/lyft/golang_test_targets/download_tooling.sh index a9f0a90..7b9f892 100755 --- a/boilerplate/lyft/golang_test_targets/download_tooling.sh +++ b/boilerplate/lyft/golang_test_targets/download_tooling.sh @@ -22,6 +22,7 @@ go_install_tool () { # List of tools to go get # In the format of ":" or ":" if no cli tools=( + "pflags:github.com/lyft/flytestdlib/cli/pflags" "golangci-lint:github.com/golangci/golangci-lint/cmd/golangci-lint" )