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

fix: In runInit, install gobind without @latest #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jefft0
Copy link

@jefft0 jefft0 commented Oct 5, 2022

To "make sure gobind is up to date", runInit calls goInstall with "golang.org/x/mobile/cmd/gobind@latest" . But it shouldn't have "@latest". This instruction can replace the gobind command in the user's $GOPATH/bin with an unexpected version. Also, it is possible that "@latest" has a breaking change with the user's application. It is better to call goInstall without "@latest" so that it will follow the directives in the user's go.mod file.

To "make sure gobind is up to date", runInit calls goInstall with "golang.org/x/mobile/cmd/gobind@latest" . But it shouldn't have "@latest". This instruction can replace the gobind command in the user's $GOPATH/bin with an unexpected version. Also, it is possible that "@latest" has a breaking change with the user's application. It is better to call goInstall without "@latest" so that it will follow the directives in the user's go.mod file.
Signed-off-by: jefft0 <jeff@thefirst.org>
@gopherbot
Copy link
Contributor

This PR (HEAD: 2664156) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/mobile/+/438144 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@jefft0 jefft0 force-pushed the fix/install-gobind-without-latest branch from 2664156 to 75764a2 Compare October 5, 2022 09:30
@gopherbot
Copy link
Contributor

This PR (HEAD: 75764a2) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/mobile/+/438144 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

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

Successfully merging this pull request may close these issues.

2 participants