Closed iwanlebron closed 7 months ago
Experiencing the same issue after updating to v0.12.0. (Running go 1.21.0)
+1 So did I
D:\desktop\xxxx-x.xx.x.x>garble -tiny build -o build/gaged -v xxxx.go
golang.org/x/sys/unix
# golang.org/x/sys/unix
:1: cannot convert es6CVFLPfaR (variable of type *GAZWrN4_onan) to type *"syscall".Rlimit
:1: cannot convert rGeoNgaw5 (variable of type *GAZWrN4_onan) to type *"syscall".Rlimit
:1: cannot convert luumoXAWL (variable of type *GAZWrN4_onan) to type *"syscall".Rlimit
exit status 2
exit status 1
Thanks all, this is probably related to https://github.com/burrowers/garble/commit/55921a06d44a92aced8d0c77f1dde24c7f66580d no longer obfuscating the syscall
package to fix MacOS.
Please leave a thumbs up reaction to the original post if you also run into the same error. There's no need to leave more comments unless they add new information.
I suspect this is related to #799
tried downgrading to v.0.11.0, sadly same issue
https://github.com/burrowers/garble/pull/834 should be the fix. Once merged, I'll backport and do a v0.12.1 release.
Just downloaded it with @master tag, sadly the issue keep being the same for me....
Are you positive?
$ go list .
golang.org/x/sys/unix
$ git rev-parse HEAD
360f961f8978a4c9a7c2e849bb482780cd6bb553
$ go version
go version go1.22.0 linux/amd64
$ go install mvdan.cc/garble@66b61406c12990b7a02c906388027b8ea6c26b4a
go: downloading mvdan.cc/garble v0.12.1-0.20240218112843-66b61406c129
$ garble version
mvdan.cc/garble v0.12.1-0.20240218112843-66b61406c129
Build settings:
-buildmode exe
-compiler gc
CGO_ENABLED 1
GOARCH amd64
GOOS linux
GOAMD64 v1
$ garble build
$ echo $?
0
Note that @master
is cached by proxy.golang.org by up to half an hour, and I literally just pushed the fix, which is why I'm installing a specific commit there.
Are you positive?
$ go list . golang.org/x/sys/unix $ git rev-parse HEAD 360f961f8978a4c9a7c2e849bb482780cd6bb553 $ go version go version go1.22.0 linux/amd64 $ go install mvdan.cc/garble@66b61406c12990b7a02c906388027b8ea6c26b4a go: downloading mvdan.cc/garble v0.12.1-0.20240218112843-66b61406c129 $ garble version mvdan.cc/garble v0.12.1-0.20240218112843-66b61406c129 Build settings: -buildmode exe -compiler gc CGO_ENABLED 1 GOARCH amd64 GOOS linux GOAMD64 v1 $ garble build $ echo $? 0
Note that
@master
is cached by proxy.golang.org by up to half an hour, and I literally just pushed the fix, which is why I'm installing a specific commit there.
I'm new to golang xd, i did not knew that my bad. Thank you for the information though.
installing via go install mvdan.cc/garble@66b61406c12990b7a02c906388027b8ea6c26b4a
worked as expected.
No worries, the proxy can be confusing at times :)
how should this be resolved
WAOK8jpS3Iv.go:3: cannot use huMsQvM (variable of type struct{Stacks []Stack "json:\"stacks,omitempty\""}) as struct{Zxk46VJ []Stack "json:\"stacks,omitempty\""} value in return statement exit status 2 exit status 1
What version of Garble and Go are you using?
What environment are you running Garble on?
go env
OutputWhat did you do?
garble build -o jy-aiot main.go
What did you expect to see?
success
What did you see instead?