You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go get -u github.com/andig/gosunspec@rollup
does not update the replacement I have in go.mod to the latest commit available. Instead, it adds it as new requirements.
What did you expect to see?
It would be nice if the replacements allowed upgrading too. Currently it doesn't, instead it adds the module to the required modules and I manually need copy the commit across to the replacement line plus remove the added module.
Granted this is probably not too common but would be nice.
The text was updated successfully, but these errors were encountered:
@andig Do you have require github.com/crabmusket/gosunspec in your go.mod file. Please check this #29299 PR for reference. It might be useful for you.
I've read both #29299 and #26241 now, it seems they are about not having to write the actual require when using replace.
Neither seems to mention the missing upgrade behaviour of go get -u with replace?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm using a module replacement:
Doing
does not update the replacement I have in go.mod to the latest commit available. Instead, it adds it as new requirements.
What did you expect to see?
It would be nice if the replacements allowed upgrading too. Currently it doesn't, instead it adds the module to the required modules and I manually need copy the commit across to the replacement line plus remove the added module.
Granted this is probably not too common but would be nice.
The text was updated successfully, but these errors were encountered: