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
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
Sometimes dep init may fail because of conflicting constraints found during solve. This will get better once we don't use the GOPATH to set initial constraints but may continue to be an issue.
The init command should recognize when solve failed due to conflicting constraints and do something smart. 😉 For example, if -gopath was specified, automatically retry with it turned off, or at least print an error message with suggestions on what to try next.
The text was updated successfully, but these errors were encountered:
this feels perhaps related to other issues we've opened, or at least what came up in discussion yesterday re: k8s, about not just failing out with no files generated when dep init fails - no?
Yes it's related but not exactly the same as the one I opened for still writing out the config when init fails (#909).
I haven't done much with this because while I'd like to do something smart, nothing has jumped out as easy to detect, and concrete enough that init could either automatically do something on your behalf (like rerunning without -gopath), or making an intelligent suggestion.
i'd say the minimum thing we can do here is generate the Gopkg.toml anyway, but print a message to the user indicating which projects seem to have a conflict and advise them that they may want to rm Gopkg.toml and start again with dep init from scratch.
Sometimes
dep init
may fail because of conflicting constraints found during solve. This will get better once we don't use the GOPATH to set initial constraints but may continue to be an issue.The init command should recognize when solve failed due to conflicting constraints and do something smart. 😉 For example, if
-gopath
was specified, automatically retry with it turned off, or at least print an error message with suggestions on what to try next.The text was updated successfully, but these errors were encountered: