You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// any slash slash comment
// +build ignore
This text won't affect compiling, right?
Tried gomobile bind -target ios for foo.go but failed like:
gomobile: go install -p=4 -pkgdir=/Users/hajimehoshi/go/pkg/gomobile/pkg_darwin_arm -tags="" github.com/hajimehoshi/go-ios-test failed: exit status 1
foo.go:4:2:
internal/bar/bar.go:3:1: expected 'package', found 'IDENT' This
It seems like a slash-slash comment prevents from interpreting build tags in dependent libraries. gomobile bind -target android worked well BTW.
The text was updated successfully, but these errors were encountered:
The syntax checking might be expected, but it looks like imports are checked: if a lib imported at bar.go is not available on iOS, gomobile bind -target ios causes an error. Is this expected?
The syntax checking might be expected, but it looks like imports are checked: if a lib imported at bar.go is not available on iOS, gomobile bind -target ios causes an error. Is this expected?
Oops, I found this (unexpected lib importing) was my mistake. Please ignore this.
Sorry, I misread your "Please ignore this." to mean the entire issue.
However, I think this issue should stay closed, because the problem is not gomobile. If you run go install /path/to/foo, you will get the same error:
../../../github.com/petejkim/foo/foo.go:4:2:
../../../path/to/package/bar/bar.go:3:1: expected 'package', found 'IDENT' This
../../../path/to/package/bar/bar.go:3:14: rune literal not terminated
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.6.2 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
foo.go
bar.go (in /path/to/package/bar)
Tried
gomobile bind -target ios
for foo.go but failed like:It seems like a slash-slash comment prevents from interpreting build tags in dependent libraries.
gomobile bind -target android
worked well BTW.The text was updated successfully, but these errors were encountered: