Skip to content

Commit 91a1262

Browse files
committed
Fix mod error during tools download
Signed-off-by: Siddhesh Ghadi <[email protected]>
1 parent d82817f commit 91a1262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ go mod init tmp ;\
291291
echo "Downloading $(2)" ;\
292292
currentver=$$(go version | { read _ _ v _; echo $$v; } | sed 's/go//g') ;\
293293
requiredver="1.19" ;\
294-
if [ $$(printf '%s\n' $$requiredver $$currentver | sort -V | head -n1) = $$requiredver ]; then export GOFLAGS=""; GOBIN=$(PROJECT_DIR)/bin go install $(2); else GOBIN=$(PROJECT_DIR)/bin go get $(2); fi;\
294+
if [ $$(printf '%s\n' $$requiredver $$currentver | sort -V | head -n1) = $$requiredver ]; then export GOFLAGS=""; GOBIN=$(PROJECT_DIR)/bin GO111MODULE=on go install $(2); else GOBIN=$(PROJECT_DIR)/bin go get $(2); fi;\
295295
rm -rf $$TMP_DIR ;\
296296
}
297297
endef

0 commit comments

Comments
 (0)