Skip to content

golang.org/x/tools/go/packages: test case TestNeedTypeSizesWithBadGOARCH in package_test.go will fail #64026

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

Closed
superajun-wsj opened this issue Nov 9, 2023 · 1 comment

Comments

@superajun-wsj
Copy link
Contributor

What version of Go are you using (go version)?

$ go version

golang/go:master branch (1cc19e5ba0a008df7baeb78e076e43f9d8e0abf2)

https://github.com/golang/go/commits/master

Does this issue reproduce with the latest release?

yes, absolutely

What operating system and processor architecture are you using (go env)?

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='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/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.21.1'
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 -ffile-prefix-map=/tmp/go-build3193613118=/tmp/go-build -gno-record-gcc-switches'

What did you do?

  1. git clone https://github.com/golang/tools.git
  2. cd go/packages and 'go test' with golang/go:master

What did you expect to see?

all test pass

What did you see instead?

--- FAIL: TestNeedTypeSizesWithBadGOARCH (0.00s)
--- FAIL: TestNeedTypeSizesWithBadGOARCH/GOPATH (0.07s)
packages_test.go:1246: Load error "" does not contain substring "can't determine type sizes"
--- FAIL: TestNeedTypeSizesWithBadGOARCH/Modules (0.07s)
packages_test.go:1246: Load error "" does not contain substring "can't determine type sizes"

@superajun-wsj
Copy link
Contributor Author

it was fixed in latest master branch, so close it.

@golang golang locked and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants