Skip to content

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

Open
jefft0 wants to merge 1 commit into
golang:masterfrom
jefft0:fix/install-gobind-without-latest
Open

fix: In runInit, install gobind without @latest#85
jefft0 wants to merge 1 commit into
golang:masterfrom
jefft0:fix/install-gobind-without-latest

Conversation

@jefft0

@jefft0 jefft0 commented Oct 5, 2022

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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