Comments (13)
Issue reproduces with go-inovation when changing go.mod to have github.com/hajimehoshi/ebiten/v2 v2.6.3
and running go get -u
:
$ git clone https://github.com/hajimehoshi/go-inovation
$ sed -i -e 's,\(github.com/hajimehoshi/ebiten/v2\) .*,\1 v2.6.3,' go.mod
$ go get -u
$ go run github.com/hajimehoshi/ebiten/v2/cmd/ebitenmobile bind -target android -javapkg com.hajimehoshi.goinovation -o ./mobile/android/inovation/inovation.aar ./mobile
2024/01/19 22:25:57 go [build -o bin/gobind -tags ebitenmobilegobind src/gobind.go] failed: src/gobind.go:29:2: missing go.sum entry for module providing package golang.org/x/sys/execabs; to add:
go mod download golang.org/x/sys
from ebiten.
Issue even remains when pinning back to the current versions with "replace" statements and running go get -u
:
replace github.com/hajimehoshi/ebiten/v2 => github.com/hajimehoshi/ebiten/v2 v2.7.0-alpha.2
replace github.com/hajimehoshi/go-steamworks => github.com/hajimehoshi/go-steamworks v0.0.0-20230813163040-103842ca9750
replace golang.org/x/image => golang.org/x/image v0.12.0
replace golang.org/x/text => golang.org/x/text v0.13.0
replace github.com/ebitengine/oto/v3 => github.com/ebitengine/oto/v3 v3.2.0-alpha.1
replace github.com/ebitengine/purego => github.com/ebitengine/purego v0.6.0-alpha.1
replace github.com/jezek/xgb => github.com/jezek/xgb v1.1.0
replace golang.org/x/exp/shiny => golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63
replace golang.org/x/mobile => golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57
replace golang.org/x/mod => golang.org/x/mod v0.12.0
replace golang.org/x/sync => golang.org/x/sync v0.3.0
replace golang.org/x/sys => golang.org/x/sys v0.12.0
replace golang.org/x/tools => golang.org/x/tools v0.13.0
So whatever causes this doesn't honor package replacements.
from ebiten.
I couldn't reproduce the issue on my macOS:
hajimehoshi@Hajimes-MacBook-Pro go-inovation % go get github.com/hajimehoshi/ebiten/[email protected]
go: downgraded github.com/hajimehoshi/ebiten/v2 v2.7.0-alpha.2 => v2.6.3
hajimehoshi@Hajimes-MacBook-Pro go-inovation % go get -u
go: downloading github.com/ebitengine/purego v0.6.0-alpha.3
go: upgraded github.com/ebitengine/oto/v3 v3.2.0-alpha.1 => v3.2.0-alpha.3
go: upgraded github.com/ebitengine/purego v0.6.0-alpha.1 => v0.6.0-alpha.3
go: upgraded github.com/hajimehoshi/go-steamworks v0.0.0-20230813163040-103842ca9750 => v0.0.0-20231029064622-d8bdd4105652
go: upgraded github.com/jezek/xgb v1.1.0 => v1.1.1
go: upgraded golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63 => v0.0.0-20240119083558-1b970713d09a
go: upgraded golang.org/x/image v0.12.0 => v0.15.0
go: upgraded golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57 => v0.0.0-20240112133503-c713f31d574b
go: upgraded golang.org/x/mod v0.12.0 => v0.14.0
go: upgraded golang.org/x/sync v0.3.0 => v0.6.0
go: upgraded golang.org/x/sys v0.12.0 => v0.16.0
go: upgraded golang.org/x/text v0.13.0 => v0.14.0
go: upgraded golang.org/x/tools v0.13.0 => v0.17.0
EDIT:
Oh, now I found this:
hajimehoshi@Hajimes-MacBook-Pro go-inovation % go run github.com/hajimehoshi/ebiten/v2/cmd/ebitenmobile bind -androidapi=23 -target android -javapkg com.hajimehoshi.goinovation -o ./mobile/android/inovation/inovation.aar ./mobile
2024/01/20 15:20:14 go [build -o bin/gobind -tags ebitenmobilegobind src/gobind.go] failed: src/gobind.go:29:2: missing go.sum entry for module providing package golang.org/x/sys/execabs; to add:
go mod download golang.org/x/sys
exit status 1
exit status 1
from ebiten.
Confirmed d6439c9 fixes this issue.
from ebiten.
Now fails a different way for AAAAXY:
gomobile: go mod tidy failed: exit status 1
go: downloading golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6
go: found github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy in github.com/divVerent/aaaaxy v0.0.0-00010101000000-000000000000
gobind/gobind imports
github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy imports
golang.org/x/mobile/app imports
golang.org/x/exp/shiny/driver/gldriver: ambiguous import: found package golang.org/x/exp/shiny/driver/gldriver in multiple modules:
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 (/home/rpolzer/go/pkg/mod/golang.org/x/[email protected]/shiny/driver/gldriver)
golang.org/x/exp/shiny v0.0.0-20240119083558-1b970713d09a (/home/rpolzer/go/pkg/mod/golang.org/x/exp/[email protected]/driver/gldriver)
gobind/gobind imports
github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy imports
golang.org/x/mobile/app imports
golang.org/x/exp/shiny/screen: ambiguous import: found package golang.org/x/exp/shiny/screen in multiple modules:
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 (/home/rpolzer/go/pkg/mod/golang.org/x/[email protected]/shiny/screen)
golang.org/x/exp/shiny v0.0.0-20240119083558-1b970713d09a (/home/rpolzer/go/pkg/mod/golang.org/x/exp/[email protected]/screen)
Trying the other repros again.
from ebiten.
To be clear, I don't know why golang.org/x/exp is even used - go mod why golang.org/x/exp shows nothing.
from ebiten.
If your go.mod has golang.org/x/exp
, please remove this.
from ebiten.
I don't have that in there. I'm trying to find out why it's being used myself.
For now I made /home/rpolzer/go/pkg/mod/golang.org/x/[email protected]
an immutable file so go can't fetch the module. I get:
$ go run github.com/hajimehoshi/ebiten/v2/cmd/ebitenmobile bind -target android -javapkg io.github.divverent.aaaaxy -o aaaaxy.aar -androidapi 21 -tags zip github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy
gomobile: go mod tidy failed: exit status 1
go: found github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy in github.com/divVerent/aaaaxy v0.0.0-00010101000000-000000000000
gobind/gobind imports
github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy imports
golang.org/x/mobile/app imports
golang.org/x/exp/shiny/driver/gldriver: unlinkat /home/rpolzer/go/pkg/mod/golang.org/x/[email protected]: operation not permitted
gobind/gobind imports
github.com/divVerent/aaaaxy/AndroidStudioProjects/AAAAXY/app/src/main/go/aaaaxy imports
golang.org/x/mobile/app imports
golang.org/x/exp/shiny/screen: unlinkat /home/rpolzer/go/pkg/mod/golang.org/x/[email protected]: operation not permitted
exit status 1
So it seems like x/mobile/app is at fault.
from ebiten.
I found this suspicious tempfile that ebitenmobile wrote:
[rpolzer@brlogenshfegle ~]$ cat /tmp/gomobile-work-*/src-android-arm/go.mod
module gobind
go 1.20
replace github.com/divVerent/aaaaxy => /tmp/aaaaxy
require (
cloud.google.com/go v0.102.1
cloud.google.com/go/bigquery v1.8.0
cloud.google.com/go/compute v1.7.0
cloud.google.com/go/datastore v1.1.0
cloud.google.com/go/iam v0.4.0
cloud.google.com/go/pubsub v1.3.1
cloud.google.com/go/storage v1.22.1
dmitri.shuralyov.com/gpu/mtl v0.0.0-20221208032759-85de2813cf6b
fyne.io/fyne v1.4.2
github.com/BurntSushi/toml v0.3.1
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802
github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9
github.com/Microsoft/go-winio v0.6.1
github.com/OneOfOne/xxhash v1.2.2
github.com/adrg/xdg v0.4.0
github.com/akavel/rsrc v0.10.2
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239
github.com/antihax/optional v1.0.0
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/census-instrumentation/opencensus-proto v0.2.1
github.com/cespare/xxhash v1.1.0
github.com/cespare/xxhash/v2 v2.1.1
github.com/chzyer/logex v1.1.10
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1
github.com/client9/misspell v0.3.4
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1
github.com/cpuguy83/go-md2man/v2 v2.0.2
github.com/creack/pty v1.1.9
github.com/davecgh/go-spew v1.1.1
github.com/dchest/jsmin v0.0.0-20220218165748-59f39799265f
github.com/ebitengine/oto/v3 v3.1.0
github.com/ebitengine/purego v0.5.2
github.com/emirpasic/gods v1.12.0
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1
github.com/envoyproxy/protoc-gen-validate v0.1.0
github.com/fardog/tmx v0.0.0-20210504210836-02c45f261672
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568
github.com/fsnotify/fsnotify v1.4.9
github.com/fyne-io/mobile v0.1.2
github.com/ghodss/yaml v1.0.0
github.com/gliderlabs/ssh v0.2.2
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20231223183121-56fa3ac82ce7
github.com/go-logr/logr v1.2.0
github.com/go-text/typesetting v0.0.0-20230905121921-abdbcca6e0eb
github.com/godbus/dbus/v5 v5.0.3
github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.3
github.com/google/btree v1.0.0
github.com/google/go-cmp v0.6.0
github.com/google/go-licenses v1.6.0
github.com/google/go-replayers/httpreplay v1.1.1
github.com/google/licenseclassifier v0.0.0-20210722185704-3043a050f148
github.com/google/martian v2.1.0+incompatible
github.com/google/martian/v3 v3.3.2
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1
github.com/google/renameio v0.1.0
github.com/google/uuid v1.3.0
github.com/googleapis/enterprise-certificate-proxy v0.1.0
github.com/googleapis/gax-go/v2 v2.4.0
github.com/googleapis/go-type-adapters v1.0.0
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/hajimehoshi/bitmapfont/v3 v3.0.0
github.com/hajimehoshi/ebiten/v2 v2.6.4
github.com/hajimehoshi/go-mp3 v0.3.4
github.com/hashicorp/golang-lru v0.5.1
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639
github.com/inconshreveable/mousetrap v1.0.1
github.com/jackmordaunt/icns v0.0.0-20181231085925-4f16af745526
github.com/jakecoffman/cp v1.2.1
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
github.com/jeandeaual/go-locale v0.0.0-20220711133428-7de61946b173
github.com/jessevdk/go-flags v1.4.0
github.com/jezek/xgb v1.1.1
github.com/jfreymuth/oggvorbis v1.0.5
github.com/jfreymuth/vorbis v1.0.2
github.com/josephspurrier/goversioninfo v1.4.0
github.com/jstemmer/go-junit-report v0.9.1
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
github.com/kisielk/gotool v1.0.0
github.com/kr/pretty v0.1.0
github.com/kr/pty v1.1.8
github.com/kr/text v0.2.0
github.com/leonelquinteros/gotext v1.5.2
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc
github.com/lestrrat-go/strftime v1.0.6
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/lucor/goinfo v0.0.0-20200401173949-526b5363a13a
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/ncruces/go-strftime v0.1.9
github.com/ncruces/zenity v0.10.11
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/nicksnyder/go-i18n/v2 v2.1.1
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
github.com/otiai10/copy v1.6.0
github.com/otiai10/curr v1.0.0
github.com/otiai10/mint v1.3.2
github.com/pelletier/go-buffruneio v0.2.0
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pkg/errors v0.9.1
github.com/pmezard/go-difflib v1.0.0
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4
github.com/randall77/makefat v0.0.0-20210315173500-7ddd0e42c844
github.com/rogpeppe/fastuuid v1.2.0
github.com/rogpeppe/go-internal v1.3.0
github.com/russross/blackfriday/v2 v2.1.0
github.com/sergi/go-diff v1.2.0
github.com/sirupsen/logrus v1.9.0
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72
github.com/spf13/afero v1.1.2
github.com/spf13/cobra v1.6.0
github.com/spf13/pflag v1.0.5
github.com/src-d/gcfg v1.4.0
github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564
github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9
github.com/stretchr/objx v0.4.0
github.com/stretchr/testify v1.8.0
github.com/xanzy/ssh-agent v0.2.1
github.com/yuin/goldmark v1.4.13
github.com/zachomedia/go-bdf v0.0.0-20220611021443-a3af701111be
go.opencensus.io v0.23.0
go.opentelemetry.io/proto/otlp v0.7.0
go.uber.org/goleak v1.3.0
golang.org/x/crypto v0.18.0
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6
golang.org/x/exp/shiny v0.0.0-20240119083558-1b970713d09a
golang.org/x/image v0.15.0
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/mobile v0.0.0-20240112133503-c713f31d574b
golang.org/x/mod v0.14.0
golang.org/x/net v0.20.0
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2
golang.org/x/sync v0.6.0
golang.org/x/sys v0.16.0
golang.org/x/term v0.16.0
golang.org/x/text v0.14.0
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
golang.org/x/tools v0.17.0
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f
google.golang.org/api v0.93.0
google.golang.org/appengine v1.6.7
google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959
google.golang.org/grpc v1.48.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
google.golang.org/protobuf v1.28.1
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
gopkg.in/errgo.v2 v2.1.0
gopkg.in/src-d/go-billy.v4 v4.3.2
gopkg.in/src-d/go-git-fixtures.v3 v3.5.0
gopkg.in/src-d/go-git.v4 v4.13.1
gopkg.in/warnings.v0 v0.1.2
gopkg.in/yaml.v2 v2.3.0
gopkg.in/yaml.v3 v3.0.1
honnef.co/go/tools v0.0.1-2020.1.4
k8s.io/klog/v2 v2.80.1
rsc.io/binaryregexp v0.2.0
rsc.io/quote/v3 v3.1.0
rsc.io/sampler v1.3.0
)
Why is x/exp in there? I didn't put it there. I didn't write that file.
from ebiten.
Could you file a new issue with a reproducible procedure? Thanks,
from ebiten.
If only I knew enough to figure out the cause. The procedure from above still reproduces.
from ebiten.
OK I'll wait for your investigation.
from ebiten.
Filed #2899 now, but I really am stumped here and without help will be forced to discontinue Android support entirely, as I simply have zero clue how to even fix that.
from ebiten.
Related Issues (20)
- Kage: Compilation panic
- examples/gamepad: PS4 (Dualshock) bluetooth controller inputs not detected on Windows HOT 8
- MacOS Failure in Running 'Hello, World!' Tutorial Example HOT 1
- examples/flappy: Audio not working on Wasm/Firefox HOT 3
- `GOOS=js GOARCH=wasm go test ./...` fails HOT 3
- Kage: Use color argument as the source image color on `DrawRectShader` HOT 4
- input: handle remapped keys on x11 HOT 3
- ebiten: calling `ScreenSizeInFullscreen` panics on browsers HOT 3
- text/v2: Draw performances using DrawImage HOT 13
- ebitenutil: DebugPrint ignoring image origin HOT 5
- SetWindowSize() and Layout() sizes not matching at fractional display scale factors
- png.Encode panics when give *ebiten.Image as the argument HOT 2
- internal/graphicsdriver/metal/*: rename functions to follow Objective-C way
- .github/workflows: Wasm tests often fail with `websocket url timeout reached`
- shaderprecomp: add tests
- internal/graphicsdriver/directx, internal/graphicsdriver/metal: use precompiled shader for bulitin shaders
- shaderprecomp: implement for Android
- ebiten: add a new API to return the logical screen size (= the result of Layout) HOT 5
- Feature request: Ability to set the pixel density of the HTML canvas HOT 1
- Weird behaviour when LayoutF returns small sizes, e.g. 1.33,1.00 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebiten.