-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: reject 'go generate' on packages in unreplaced module dependencies? #29751
Comments
CC @jayconrod Personally, I'd prefer that we allow |
Not averse to your suggestion, but just to note (at least from my experience) the requirement is the other way around, i.e. the module with the Unless you're talking about temporarily adding the reverse requirement for testing purposes? |
Yes. |
I thought 'go generate' in dependencies was already disabled, same as 'go fmt' and 'go fix'. If not, it should be. |
Hey @bcmills I want to work on this. What should be the required behaviour in this case ? Should the go command just return |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Testing with the beta pre the 1.12 release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran
testscript
on the following:What did you expect to see?
A failed run.
What did you see instead?
It feels like this should be an error instead of a noisy success. Reason being, I've specified the pattern of a non-main module package(s) on the command line; based on the current implementation, that will never succeed (even if there is a
replace
directive).cc @bcmills.
The text was updated successfully, but these errors were encountered: