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: 'go list' should support -u=patch #41006

Open
jerome-laforge opened this issue Aug 24, 2020 · 1 comment
Open

cmd/go: 'go list' should support -u=patch #41006

jerome-laforge opened this issue Aug 24, 2020 · 1 comment
Labels
Milestone

Comments

@jerome-laforge
Copy link

@jerome-laforge jerome-laforge commented Aug 24, 2020

Background

Currently, it is not possible to list available update module only for patch.
For example:

module github.com/test/test

go 1.15

require go.mongodb.org/mongo-driver v1.3.6

I want to know if a new patch version if available (here v1.3.7 and not v1.4.0), but I don't know how to do.
The given example here https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies is for direct with minor and patch (I just want patch). And yet, the v1.3.7 has been released (https://pkg.go.dev/mod/go.mongodb.org/mongo-driver@v1.3.7).

$ go list -u -m all | grep "go.mongodb.org/mongo-driver"
go.mongodb.org/mongo-driver v1.3.6 [v1.4.0]

Description

I propose to add -u=patch (as already proposed for go get)

$ go list -u=patch -m all | grep "go.mongodb.org/mongo-driver"
go.mongodb.org/mongo-driver v1.3.6 [v1.3.7]
@bcmills
Copy link
Member

@bcmills bcmills commented Sep 14, 2020

CC @jayconrod @matloob

Honestly, I'm surprised that list doesn't already support -u=patch. (I think we should just do this — no need for a formal proposal.)

@bcmills bcmills changed the title proposal: go/list list available update modules with -u=patch proposal: cmd/go: 'go list' should support -u=patch Sep 14, 2020
@bcmills bcmills modified the milestones: Proposal, Backlog Sep 14, 2020
@bcmills bcmills changed the title proposal: cmd/go: 'go list' should support -u=patch cmd/go: 'go list' should support -u=patch Sep 14, 2020
@bcmills bcmills added NeedsFix and removed Proposal labels Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.