Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of 'go get' for installing executables #258

Open
DevDengChao opened this issue Sep 2, 2023 · 0 comments
Open

Deprecation of 'go get' for installing executables #258

DevDengChao opened this issue Sep 2, 2023 · 0 comments

Comments

@DevDengChao
Copy link

Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead.


There should be some version comparing in

:INSTALL
ECHO Installing 2goarray...
go get github.com/cratonica/2goarray
IF ERRORLEVEL 1 GOTO GETFAIL
GOTO POSTINSTALL
and
if [ ! -e "$GOPATH/bin/2goarray" ]; then
echo "Installing 2goarray..."
go get github.com/cratonica/2goarray
if [ $? -ne 0 ]; then
echo Failure executing go get github.com/cratonica/2goarray
exit
fi
fi

Otherwise users won't be able to invoke the 2goarray bin to generate an icon.

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant