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 ./...