cmd/go: confusing error message (or incorrect behavior) when using -modfile with go run #51079
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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: