Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go2go: run command fails #45502

Open
justas68 opened this issue Apr 11, 2021 · 2 comments
Open

cmd/go2go: run command fails #45502

justas68 opened this issue Apr 11, 2021 · 2 comments
Labels

Comments

@justas68
Copy link

@justas68 justas68 commented Apr 11, 2021

Hi, I have a simple main package, which works if I do
go tool go2go translate main.go2
go run main.go
But it fails if I try to run immediately with command
go tool go2go run main.go2
Getting error:
cannot find package "run" in any of: C:\Users\justast\Desktop\Go\go\src\run (from $GOROOT) C:\Users\justast\AppData\Local\Temp\go2go1730022865\src\run (from $GOPATH) C:\Users\justast\Desktop\Go\go2\src\run C:\Users\justast\Desktop\Go\go\bin\go [run run main.go] failed: exit status 1

@seankhliao seankhliao changed the title go2go run command fails cmd/go2go: run command fails Apr 11, 2021
@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Apr 11, 2021

cc @ianlancetaylor

broken in CL 303275

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 12, 2021

Change https://golang.org/cl/309570 mentions this issue: [dev.go2go] cmd/go2go: don't pass "run run" to cmd/go

gopherbot pushed a commit that referenced this issue Apr 13, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants