1
0
mirror of https://github.com/golang/go synced 2024-11-17 10:54:50 -07:00

cmd/go: add test case for issue 64738

The straight revert in CL 551215 fixed this issue.
Add a test case to make sure we don't reintroduce it.

Test case copied from CL 550237 (by bcmills).

Fixes #64738.

Change-Id: I9654a1fd46fe1a1cc63ee6645a552ec21d720ad0
Reviewed-on: https://go-review.googlesource.com/c/go/+/551255
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Russ Cox 2023-12-19 09:42:00 -05:00 committed by Gopher Robot
parent 1a07550962
commit 76b8bec6db

View File

@ -0,0 +1,4 @@
# Regression test for https://go.dev/issue/64738:
# a bug in 'go run' caused flags arguments after the requested package to
# also be parsed as cmd/go flags.
go run -n example.com/printversion@v0.1.0 -p ignored