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/list how to list available modules with new patch release #40990

Closed
jerome-laforge opened this issue Aug 23, 2020 · 1 comment
Closed

go/list how to list available modules with new patch release #40990

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

Comments

@jerome-laforge
Copy link

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

related to https://groups.google.com/forum/#!topic/golang-nuts/W7e8ugsipqI

Currently, I am not able to list new version of module but for patch only.

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]

I want use this in my CI with psampaz/go-mod-outdated from @psampaz but only for patch version with something like :

go list -u -m -json all | go-mod-outdated -update -direct -style markdown -ci

What version of Go are you using (go version)?

1.5.0

@jerome-laforge jerome-laforge changed the title go/list how to list available modules with patch new release go/list how to list available modules with new patch release Aug 23, 2020
@martisch
Copy link
Contributor

@martisch martisch commented Aug 23, 2020

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For venues to ask questions, see: https://github.com/golang/go/wiki/Questions

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
2 participants
You can’t perform that action at this time.