-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile: go get golang.org/x/mobile/...
reports errors
#17750
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
Labels
Milestone
Comments
instead of trying to compile everything recursively (and failing the tests, which aren't working even on the builders at the moment), you may want to install only the gomobile binary, which knows how to do the rest:
|
CL https://golang.org/cl/34956 mentions this issue. |
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 10, 2021
Running go get golang.org/x/mobile/... results in errors because the go tool fails to find the reverse generated Java ("Java/...") and Objective-C ("ObjC/...") packages. Work around the errors by adding the android and ios tags, respectively, to files importing those packages. The gobind gradle plugin is updated to pass along GOOS=android to ensure the gobind tool continues to build Android reverse packages. Fixes golang/go#17750 Change-Id: Id66a3c6cdfe249c6ed494192eb12195d6509332f Reviewed-on: https://go-review.googlesource.com/34956 Reviewed-by: David Crawshaw <[email protected]>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 11, 2021
Running go get golang.org/x/mobile/... results in errors because the go tool fails to find the reverse generated Java ("Java/...") and Objective-C ("ObjC/...") packages. Work around the errors by adding the android and ios tags, respectively, to files importing those packages. The gobind gradle plugin is updated to pass along GOOS=android to ensure the gobind tool continues to build Android reverse packages. Fixes golang/go#17750 Change-Id: Id66a3c6cdfe249c6ed494192eb12195d6509332f Reviewed-on: https://go-review.googlesource.com/34956 Reviewed-by: David Crawshaw <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
% go get golang.org/x/mobile/...
package golang.org/x/mobile/bind/testpkg/javapkg
imports Java/java/lang/Float: unrecognized import path "Java/java/lang/Float" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/javapkg
imports Java/java/lang/Integer: unrecognized import path "Java/java/lang/Integer" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/javapkg
imports Java/java/lang/System: unrecognized import path "Java/java/lang/System" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/javapkg
imports Java/java/util/Collections: unrecognized import path "Java/java/util/Collections" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/javapkg
imports Java/java/util/jar/JarFile: unrecognized import path "Java/java/util/jar/JarFile" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/objcpkg
imports ObjC/Foundation: unrecognized import path "ObjC/Foundation" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/objcpkg
imports ObjC/Foundation/NSDate: unrecognized import path "ObjC/Foundation/NSDate" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/objcpkg
imports ObjC/Foundation/NSString: unrecognized import path "ObjC/Foundation/NSString" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/objcpkg
imports ObjC/QuartzCore/CAMediaTimingFunction: unrecognized import path "ObjC/QuartzCore/CAMediaTimingFunction" (import path does not begin with hostname)
package golang.org/x/mobile/bind/testpkg/objcpkg
imports ObjC/UIKit: unrecognized import path "ObjC/UIKit" (import path does not begin with hostname)
The text was updated successfully, but these errors were encountered: