-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: do not allow main module to replace itself #36358
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
Conversation
1a79171
to
00ece8a
Compare
This PR (HEAD: 00ece8a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/213118 to see it. Tip: You can toggle comments from me using the |
Message from Jay Conrod: Patch Set 1: (5 comments) Thanks for working on this. A few changes needed though. Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
00ece8a
to
0ad98f7
Compare
This PR (HEAD: 0ad98f7) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/213118 to see it. Tip: You can toggle comments from me using the |
Message from Greesha Mikhalkin: Patch Set 2:
Thanks for clarifications. I updated PR Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
Message from Bryan C. Mills: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
Message from Jay Conrod: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
Change-Id: I6d94f00e1c607581ba32253ba00fe4110e2bb5b8
0ad98f7
to
adc72ad
Compare
This PR (HEAD: adc72ad) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/213118 to see it. Tip: You can toggle comments from me using the |
Message from Segev Finer: Patch Set 3: I have seen projects replacing them self with themselves due to having a circular dependency, e.g:
Does this block this so such projects can no longer work, or is there some other fix so this is no longer necessary. (Yes, such circular dependencies are probably a bad idea, but some people just insist on doing them regardless) Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
Message from Jay Conrod: Patch Set 3:
Segev, this CL will report an error when the main module replaces itself or replaces another module with itself. I don't think this kind replacement should be necessary, but please comment on golang.org/issue/34417 if you're running into a problem that's difficult to solve without this, and we'll try and recommend another solution. Please don’t reply on this GitHub thread. Visit golang.org/cl/213118. |
This PR is being closed because golang.org/cl/213118 has been abandoned. Seems like we aren't going to do this, so abandoning. Please comment if you disagree. |
Fixes #34417