[dev.go2go] cmd/go2go: don't pass "run run" to cmd/go

Fixes #45502

Change-Id: I510c47e7780a42ffd0c855da5ce1674d487c1633
Reviewed-on: https://go-review.googlesource.com/c/go/+/309570
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Ian Lance Taylor 2021-04-12 15:17:13 -07:00
parent a4b4db4cde
commit 9cd52cf2a9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func main() {
tmpdir := copyToTmpdir(args)
defer os.RemoveAll(tmpdir)
translate(importer, tmpdir)
nargs := []string{"run"}
var nargs []string
for _, arg := range args {
base := filepath.Base(arg)
f := strings.TrimSuffix(base, ".go2") + ".go"