burrowers / garble

Obfuscate Go builds
BSD 3-Clause "New" or "Revised" License
3.73k stars 239 forks source link

golang.org/x/crypto/ssh: failing on pingMsg #813

Closed theaog closed 7 months ago

theaog commented 7 months ago

What version of Garble and Go are you using?

$ garble version
mvdan.cc/garble v0.10.1

Build settings:
      -buildmode exe
       -compiler gc
  DefaultGODEBUG panicnil=1
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1

$ go version
go version go1.21.4 linux/amd64

What environment are you running Garble on?

go env Output
$ go env
GOARCH='amd64'
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOOS='linux'

What did you do?

garble build -trimpath

What did you expect to see?

working bin

What did you see instead?

# golang.org/x/crypto/ssh
kHTMXUkQUv3F.go:1: cannot convert qsuqpCFW3w5 (variable of type pingMsg) to type nDOqyEE
exit status 2
theaog commented 7 months ago

\cc @mvdan

tandem97 commented 7 months ago

same problem

rafaelcalleja commented 7 months ago

branch master works

mvdan.cc/garble v0.10.2-0.20231119153536-9378ec959a6d

Build settings:
      -buildmode exe
       -compiler gc
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
mvdan commented 7 months ago

This is indeed a duplicate of #801.