-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error during go get tinygo.org/x/tinygba #2
Comments
@scraly both of those packages are part of the tinygo-specific packages. Perhaps your tinygo env is not set correctly? |
what is the output when you run this command?
|
Here is the output: $ tinygo env
GOOS="linux"
GOARCH="amd64"
GOROOT="/home/gitpod/go"
GOPATH="/workspace/go"
GOCACHE="/home/gitpod/.cache/tinygo"
CGO_ENABLED="1"
TINYGOROOT="/home/linuxbrew/.linuxbrew/Cellar/tinygo/0.30.0" |
Last question, hopefully:
|
$ which tinygo
/home/linuxbrew/.linuxbrew/bin/tinygo And I just tested in another machine, same problem: $ go version
go version go1.21.5 darwin/arm64
$ tinygo version
tinygo version 0.30.0 darwin/amd64 (using go version go1.21.5 and LLVM version 16.0.1)
$ tinygo env
GOOS="darwin"
GOARCH="amd64"
GOROOT="/Users/avache/go/pkg/mod/golang.org/[email protected]"
GOPATH="/Users/avache/go"
GOCACHE="/Users/avache/Library/Caches/tinygo"
CGO_ENABLED="1"
TINYGOROOT="/Users/avache/homebrew/Cellar/tinygo/0.30.0"
$ which tinygo
/Users/avache/homebrew/bin/tinygo
$ tinygo run -target=gameboy-advance gopher.go
go: downloading tinygo.org/x/tinyfont v0.4.0
go: downloading tinygo.org/x/drivers v0.25.0
gopher.go:13:2: no required module provides package tinygo.org/x/tinygba; to add it:
go get tinygo.org/x/tinygba
$ go get tinygo.org/x/tinygba
go: downloading tinygo.org/x/tinygba v0.0.0-20231205145444-0d73574106af
go: tinygo.org/x/tinygba imports
device/gba: package device/gba is not in std (/Users/avache/go/pkg/mod/golang.org/[email protected]/src/device/gba)
go: tinygo.org/x/tinygba imports
machine: package machine is not in std (/Users/avache/go/pkg/mod/golang.org/[email protected]/src/machine) |
i have the same problem :( tinygo env go get tinygo.org/x/tinygba |
my solution was to set in my environment that I am using go modules (instead of asking go to pull dependencies in a vendor folder):
|
Thank you, it worked 😸 |
Hi,
I've tried to use this repo in order to create some GBA apps/games and I have an error:
Can you help me about it?
thanks
The text was updated successfully, but these errors were encountered: