Closed hajimehoshi closed 1 year ago
Hi, just started trying out ebiten for first time and it looks like the 'examples' build tag is removed? Is that correct? I tried the following command: go version go version go1.15.6 linux/amd64
go run -tags=example github.com/hajimehoshi/ebiten/v2/examples/rotate cannot find package "github.com/hajimehoshi/ebiten/v2/examples/rotate" in any of: /usr/lib64/golang/src/github.com/hajimehoshi/ebiten/v2/examples/rotate (from $GOROOT) /home/avillanueva/Development/go/src/github.com/hajimehoshi/ebiten/v2/examples/rotate (from $GOPATH)
If the tag is removed, what's the method to install the Ebiten? Thank you.
Hi, just started trying out ebiten for first time and it looks like the 'examples' build tag is removed?
Not yet.
If the tag is removed, what's the method to install the Ebiten?
You mean the examples? Just -tags=example will be no longer required.
yeah .so I just need to do 'go get github.com/hajimehoshi/ebiten ? '
You don't need to do go get
as long as you use Go modules. go run
or go build
already automatically download necessary files.
Hm, go get
still installs binaries with Go 1.17. I'll postpone this to Go 1.19.
go get
with the module mode no longer installs binaries as of Go 1.18
go get no longer builds or installs packages in module-aware mode. go get is now dedicated to adjusting dependencies in go.mod.
Then, let's keep the build tag until the next Debian stable version is released and we can give up supporting Go 1.15-1.17 :-) So probably these things happen in 2023 winter, Ebitengine v2.7?
The
examples
build tag is to prevent users from install example binaries unexpectedly. However, as installing with a version will be must outside a module, and...
likego install foo/bar/...
will no longer be recommended (not sure, let me double-check), we might not need the tag any more.https://tip.golang.org/doc/go1.16#go-command