axiom icon indicating copy to clipboard operation
axiom copied to clipboard

Go get doesn't appear to be a thing anymore

Open stop-a opened this issue 3 years ago • 0 comments

Running axiom-scan and got an error [redacted]/.axiom/interact/axiom-scan: line 1006: anew: command not found

Looked at the script and anew command is called. Worked backwards and on line 1036 I think I see the issue, go get -u github.com/tomnomnom/anew >> /dev/null 2>&1. The whole block:

###########################################################################################################
1033 #  Install anew if not already installed
1034 #
1035 if ! [ -x "$(command -v anew)" ]; then
1036 go get -u github.com/tomnomnom/anew >> /dev/null 2>&1
1037 fi
1038 
1039 ###########################################################################################################

If I run that at the command line, I get an error basically saying "we don't do 'go get' anymore. Use 'go install example.com/cmd@latest' instead".

After running go install github.com/tomnomnom/anew@latest I was able to make the error go away.

Looks like there's a couple of other opportunities for this kind of error, as well:

$ grep "go get" axiom-*
axiom-configure:go get -u github.com/tomnomnom/anew >> /dev/null 2>&1
axiom-orgalorg: go get github.com/reconquest/orgalorg
axiom-scan:GO111MODULE=on go get -v github.com/hahwul/gee >/dev/null 2>&1
axiom-scan:go get -u github.com/tomnomnom/anew >> /dev/null 2>&1

stop-a avatar Jun 20 '22 23:06 stop-a

thanks, we've updated configure and scan.

0xtavian avatar Sep 11 '22 03:09 0xtavian