-
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: confusing error message (or incorrect behavior) when using -modfile with go run #51079
Comments
I'm not able to reproduce this failure mode from PS2 of that CL.
I'm not sure what to make of that, but at this point I don't have any other ideas about how it might have gone wrong. I did try setting Is it possible that there was some kind of bad interaction with an IDE overlay, or a delayed file write? (Did you execute the command directly on the command line?) |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
(I'm just adding this comment to reset the Gopherbot timer. 😅) |
I'm experiencing some confusing behavior when trying to use the
-modfile
flag withgo run
-- it appears that-modfile
is not being honored, though I have not ruled out an error on my side.Context: in CL 383375, patchset 2, I am trying to use
x/tools
for thecopytermlist.go
script (used bygo generate
), but don't want to add anx/tools
dependency to the module. I was planning to manage this additional dependency in ago.tools.mod
file.The
-modfile
flag appears not to work, even though copying overgo.mod
andgo.sum
does work.This doesn't match my mental model for how
-modfile
behaves.CC @bcmills
The text was updated successfully, but these errors were encountered: