From 077576afb698b63095f56b2d28059355bb2870ac Mon Sep 17 00:00:00 2001 From: Jakub Drobena Date: Wed, 2 Oct 2024 10:33:01 +0200 Subject: [PATCH] Fixing Go linters tests --- goerrcheck.sh | 2 +- ineffassign.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/goerrcheck.sh b/goerrcheck.sh index cbc7179..b7df8f8 100755 --- a/goerrcheck.sh +++ b/goerrcheck.sh @@ -25,7 +25,7 @@ echo -e "${BLUE}Finding all unchecked errors${NC}" if ! [ -x "$(command -v errcheck)" ] then echo -e "${BLUE}Installing errcheck ${NC}" - GO111MODULE=off go get github.com/kisielk/errcheck + GO111MODULE=on go install github.com/kisielk/errcheck@latest fi diff --git a/ineffassign.sh b/ineffassign.sh index a1c30a1..8f44674 100755 --- a/ineffassign.sh +++ b/ineffassign.sh @@ -24,7 +24,7 @@ echo -e "${BLUE}Detecting ineffectual assignments in Go code${NC}" if ! [ -x "$(command -v ineffassign)" ] then echo -e "${BLUE}Installing ineffassign${NC}" - GO111MODULE=off go get github.com/gordonklaus/ineffassign + GO111MODULE=on go install github.com/gordonklaus/ineffassign@latest fi if ! ineffassign ./...