-
Notifications
You must be signed in to change notification settings - Fork 44
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
not find any module could update in go worksapce #35
Comments
When a module is inside a workspace (sub directory), the "go list" command returns that all modules are up to date, which is not the case. Disabling Go workspace mode when running "go list" fixes the issue.
Hi, Indeed, this is an issue. Could you try on your side and tell me if it also works for you ? Thanks ! |
Yeah, it works! Simple and useful, what a great solution!Thanks! |
Fix issue oligot#35 - module inside workspace
There are two modules in a go workspace like this
then run go-mod-upgrade, It always print "All modules are up to date"
I tried to find what's wrong.
When I run
go list -u -f '{{if (and (not (or .Main .Indirect)) .Update)}}{{.Path}}: {{.Version}} -> {{.Update.Version}}{{end}}' -m all
, I found that the Indirect field is always true. It seems a bug ingo list
.I think we can change a way to pick out the indirect moudles.
I forked this repo and tried to use
go mod edit -json
, it works well.I am going to submit a PR later, please review it, thanks.
The text was updated successfully, but these errors were encountered: