diff options
| author | Russ Cox <rsc@golang.org> | 2023-12-19 09:42:00 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-01-23 18:08:32 +0000 |
| commit | 76b8bec6dbea9d56edbb5b2e8ab2fcf100ac1cd0 (patch) | |
| tree | 21b523d0cdc232d68b31d6bede36f4a20d44ff5f /src | |
| parent | 1a07550962a9f0123284a0efbe11c486fb1a452e (diff) | |
| download | go-76b8bec6dbea9d56edbb5b2e8ab2fcf100ac1cd0.tar.xz | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/testdata/script/mod_run_flags_issue64738.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/mod_run_flags_issue64738.txt b/src/cmd/go/testdata/script/mod_run_flags_issue64738.txt new file mode 100644 index 0000000000..f143b026fe --- /dev/null +++ b/src/cmd/go/testdata/script/mod_run_flags_issue64738.txt @@ -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 |
