cmd/go: Setting up a go workspace breaks building #57738
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
Do any of the modules in your workspace use
Does your workspace include its own version of the
Yes, as this is one repository with many modules they replace each other with relative parts if imported, i.E. the one that doesn't build anymore has one
According to the
Since everything works perfectly fine when not using
This is different, on the branch with the
I searched for that git sha and found that there is another module that does a
Removing this module from
Replace directives getting propagated from one module to the other when they don't import each other seems surprising to me, is this intentional? It somewhat defeats the purpose of having the multiple modules in the first place as the purpose of that was to be able to have different versions of dependencies.
The workspace intentionally applies all of the
By design, a workspace can have only one set of consistent dependencies. (If you want to work with the dependencies of each module separately, don't combine them in a workspace.)
I agree on that, I guess I would have expected a
Thanks a lot for your help, really appreciate it!