Skip to content
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

panic: package "internal/coverage/cfile" still missing after go list call #872

Closed
CaledoniaProject opened this issue Sep 5, 2024 · 4 comments

Comments

@CaledoniaProject
Copy link

What version of Garble and Go are you using?

$ garble version
mvdan.cc/garble v0.12.1

Build settings:
      -buildmode exe
       -compiler gc
  DefaultGODEBUG asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1

$ go version
go version go1.23.0 linux/amd64

What environment are you running Garble on?

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.0'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1626269188=/tmp/go-build -gno-record-gcc-switches'

What did you do?

What did you expect to see?

successfully build a package

What did you see instead?

# runtime
panic: package "internal/coverage/cfile" still missing after go list call

goroutine 1 [running]:
main.listPackage(0xc0001f7200, {0xc0002f0a49, 0x17})
	/root/go/pkg/mod/mvdan.cc/[email protected]/shared.go:385 +0x6b9
main.(*transformer).transformLinkname(0xc00007f200, {0xc0002f0a2e?, 0x8558f0?}, {0xc0002f0a49, 0x29})
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:1157 +0x365
main.(*transformer).transformDirectives(0xc00007f200, {0xc000387100, 0x2, 0x7fff88e57790?})
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:1097 +0x12e
main.(*transformer).transformCompile(0xc00007f200, {0xc000024c38?, 0xc00002e094?, 0x7?})
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:1044 +0xb5c
main.mainErr({0xc000024c18, 0xad, 0xa7f1e0?})
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:458 +0x89e
main.main1()
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:255 +0x20c
main.main()
	/root/go/pkg/mod/mvdan.cc/[email protected]/main.go:147 +0x13
exit status 1
@chenrui333
Copy link

seeing the same issue while doing Homebrew/homebrew-core#183586

@mvdan
Copy link
Member

mvdan commented Sep 5, 2024

garble v0.12.1 does not support Go 1.23.0. See #859. Try master, I will do a release soon.

@mvdan mvdan closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2024
@chenrui333
Copy link

Sounds good, I will wait for the new release then. :)

@CaledoniaProject
Copy link
Author

CaledoniaProject commented Sep 5, 2024

I confirm 0.13.0 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants