Change information
Commit message:
cmd/go/internal/modload: fix logged filename for 'go mod init -modfile'
Fix 'go mod init -modfile=tools.mod module' which prints
'creating new go.mod' instead of 'creating new tools.mod'.
Note that -modfile already works, but isn't yet documented
and this is the subject of proposal #78503, so this patch is the minimal
patch to make the feature work better with the existing testsuite,
but more test cases will have to be added once the proposal is approved.
Change-Id: Ia4a7c9b6fb71b4365cbe5f3b70a7af6011b9e089
Files:
- M src/cmd/go/internal/modload/init.go
Change size: XS
Delta: 1 file changed, 5 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Michael Matloob, +1 by David Chase, +2 by Michael Matloob
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI