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
vgo: resolving import "myitcv.io/react/cmd/reactGen"
vgo: finding myitcv.io/react (latest)
vgo: adding myitcv.io/react v0.0.0-20180401174332-7cf02ba84fd8
vgo: resolving import "myitcv.io/gogenerate"
vgo: finding myitcv.io (latest)
vgo: adding myitcv.io v0.0.0-20180409175419-9d9cad103b4f
vgo: import "myitcv.io/react/cmd/reactGen": found in both myitcv.io v0.0.0-20180409175419-9d9cad103b4f and myitcv.io/react v0.0.0-20180401174332-7cf02ba84fd8
myitcv.io/react/cmd/reactGen (which has not been migrated) depends on myitcv.io/gogenerate (which has been migrated).
To my mind this situation, whilst perhaps not common, is not unreasonable - thoughts?
What did you expect to see?
myitcv.io/react/cmd/reactGen to be successfully installed.
What did you see instead?
Installation failed with error:
vgo: import "myitcv.io/react/cmd/reactGen": found in both myitcv.io v0.0.0-20180409175419-9d9cad103b4f and myitcv.io/react v0.0.0-20180401174332-7cf02ba84fd8
The text was updated successfully, but these errors were encountered:
I'm actually going to close this issue because post this reported problem I don't think the current behaviour is unreasonable because the situation as described is also a problem for go get (which breaks my backwards compatibility).
The "issue" is the introduction of a the mono repo at the import path myitcv.io. Whilst there are myitcv.io/... packages that remain outside the mono repo (in their own repos) that have a dependency on packages in the mono repo we effectively creates an ambiguous resolution for myitcv.io (terrible wording but hopefully the point is clear). And the same is true vice versa when trying to use vgo to install a yet-to-be-migrated package.
So now I think this scenario is rather strange/unlikely for most. It feels like I've got a big-bang switch on the cards... which should be fine because the mono-repo is effectively tested in isolation.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Specifically
vgo
is as of 5db81b5cd6ab5ee1dd1b1b0ee0843f194ab7b908 (current tip)Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
Per https://github.com/myitcv/x/wiki/Notes-on-migrating-to-a-Go-mono-repo, I'm in the process of migrating all
myitcv.io/...
packages to a mono repo at: https://github.com/myitcv/xNotwithstanding #24751 and #24687, I have currently migrated:
myitcv.io/gogenerate
myitcv.io/immutable/...
Which leaves
myitcv.io/react/...
and a number of others still to do.Now if I create a new module and try and install
myitcv.io/react/cmd/reactGen
:I get:
myitcv.io/react/cmd/reactGen
(which has not been migrated) depends onmyitcv.io/gogenerate
(which has been migrated).To my mind this situation, whilst perhaps not common, is not unreasonable - thoughts?
What did you expect to see?
myitcv.io/react/cmd/reactGen
to be successfully installed.What did you see instead?
Installation failed with error:
The text was updated successfully, but these errors were encountered: