Skip to content

Commit db89504

Browse files
Use go1.16+ way of installing binaries (#17342)
1 parent 4a57c9e commit db89504

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,30 +279,30 @@ swagger-validate:
279279
.PHONY: errcheck
280280
errcheck:
281281
@hash errcheck > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
282-
GO111MODULE=off $(GO) get -u github.com/kisielk/errcheck; \
282+
$(GO) install github.com/kisielk/errcheck@8ddee489636a8311a376fc92e27a6a13c6658344; \
283283
fi
284284
@echo "Running errcheck..."
285285
@errcheck $(GO_PACKAGES)
286286

287287
.PHONY: revive
288288
revive:
289289
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
290-
GO111MODULE=off $(GO) get -u github.com/mgechev/revive; \
290+
$(GO) install github.com/mgechev/revive@v1.1.2; \
291291
fi
292292
@revive -config .revive.toml -exclude=./vendor/... ./...
293293

294294
.PHONY: misspell-check
295295
misspell-check:
296296
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
297-
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
297+
$(GO) install github.com/client9/misspell/cmd/misspell@v0.3.4; \
298298
fi
299299
@echo "Running misspell-check..."
300300
@misspell -error -i unknwon $(GO_SOURCES_OWN)
301301

302302
.PHONY: misspell
303303
misspell:
304304
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
305-
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
305+
$(GO) install github.com/client9/misspell/cmd/misspell@v0.3.4; \
306306
fi
307307
@echo "Running go misspell..."
308308
@misspell -w -i unknwon $(GO_SOURCES_OWN)
@@ -350,7 +350,7 @@ watch-frontend: node-check node_modules
350350
.PHONY: watch-backend
351351
watch-backend: go-check
352352
@hash air > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
353-
GO111MODULE=off $(GO) get -u github.com/cosmtrek/air; \
353+
$(GO) install github.com/cosmtrek/air@bedc18201271882c2be66d216d0e1a275b526ec4; \
354354
fi
355355
air -c .air.conf
356356

@@ -661,7 +661,7 @@ release-check: | $(DIST_DIRS)
661661
.PHONY: release-compress
662662
release-compress: | $(DIST_DIRS)
663663
@hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
664-
GO111MODULE=off $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
664+
$(GO) install github.com/ulikunitz/xz/cmd/gxz@v0.5.10; \
665665
fi
666666
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;
667667

0 commit comments

Comments
 (0)