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 · 3 comments
Open

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

jerome-laforge opened this issue Aug 24, 2020 · 3 comments
Labels
help wanted modules NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@jerome-laforge
Copy link

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]
@gopherbot gopherbot added this to the Proposal milestone Aug 24, 2020
@bcmills bcmills added modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Sep 14, 2020
@bcmills
Copy link
Contributor

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 The path to resolution is known, but the work has not been done. and removed Proposal labels Sep 14, 2020
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 14, 2020
@gopherbot
Copy link

Change https://go.dev/cl/432536 mentions this issue: cmd/go: add -u=patch option for go list

jeanbza added a commit to jeanbza/go that referenced this issue Sep 21, 2022
Fixes golang#41006

Change-Id: I52fb3a9525ccdacd9d4ed237ce62193c5f9c1551
jeanbza added a commit to jeanbza/go that referenced this issue Sep 22, 2022
Fixes golang#41006

Change-Id: I52fb3a9525ccdacd9d4ed237ce62193c5f9c1551
@goto1134
Copy link

goto1134 commented May 1, 2023

@bcmills , seems like the review is stuck on waiting for your reply. Could you come back to it when it'll be convenient for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted modules NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants