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

cmd/go: improve support for using modules in offline mode #49389

Closed
mvdan opened this issue Nov 5, 2021 · 3 comments
Closed

cmd/go: improve support for using modules in offline mode #49389

mvdan opened this issue Nov 5, 2021 · 3 comments
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@mvdan
Copy link
Member

mvdan commented Nov 5, 2021

I was on a plane earlier this week, and not being able to use go get was unfortunate. Any queries like go get some-dependency@latest or @master always reach for the internet, failing immediately. Something akin to go get some-dependency@latest-cached would have been neat, because that dependency was many months out of date, and my cache had multiple newer tagged versions.

I ended up looking directly into my module download cache, finding the latest tagged version there, then using go get some-dependency@v1.2.3. Which worked, but it's also somewhat tedious, and I don't like having to peek at the local cache in this way to be able to use it.

I believe that we've talked about better offline support before, but I could not find a tracking issue for it.

cc @bcmills @matloob

@mvdan mvdan added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go modules labels Nov 5, 2021
@bcmills
Copy link
Member

bcmills commented Nov 5, 2021

Aha! I finally found the issue I had half-remembered for this.

@bcmills
Copy link
Member

bcmills commented Nov 5, 2021

Duplicate of #43646

@bcmills bcmills marked this as a duplicate of #43646 Nov 5, 2021
@bcmills bcmills closed this as completed Nov 5, 2021
@mvdan
Copy link
Member Author

mvdan commented Nov 5, 2021

Ah, thanks!

@golang golang locked and limited conversation to collaborators Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants