mirror of https://github.com/golang/go.git
[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:
parent
a4b4db4cde
commit
9cd52cf2a9
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue