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

go/cmd: concurrent commands like 'go get' #42722

Closed
maomaoguo2017 opened this issue Nov 19, 2020 · 1 comment
Closed

go/cmd: concurrent commands like 'go get' #42722

maomaoguo2017 opened this issue Nov 19, 2020 · 1 comment

Comments

@maomaoguo2017
Copy link

hi.
just a simple question.

if index != nil && !bytes.Equal(old, index.data) {

is this meaning i can't to run concurrent commands which need change the go.mod or go.sum ?
like:

go get <mod1 URL> &
go get <mod2 URL> &
go get -u <mod3 URL> &
@bcmills
Copy link
Contributor

bcmills commented Nov 19, 2020

That's correct. The expectation is that you set up the dependencies you need in a sequence of zero or more sequential go get commands, and then you can concurrently invoke go build, go test, and so on as much as you like.

There isn't a good way for commands like go get to incorporate concurrent changes without starting over completely, and we don't want to keep the files locked for an arbitrarily long time while go get is working — that would just result in the same kind of sequential operation that you can already do by leaving off the &.

@bcmills bcmills closed this as completed Nov 19, 2020
@golang golang locked and limited conversation to collaborators Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants