Skip to content

cmd/cgo/internal: platform-specific test files are missing build constraints #60164

@findleyr

Description

@findleyr
package nosuchpkg is not in GOROOT (C:\workdir\go\src\nosuchpkg)
package nosuchpkg is not in GOROOT (C:\workdir\go\src\nosuchpkg)
open C:\workdir\gopath\src\golang.org\x\tools\go\loader\missing.go: The system cannot find the file specified.
open C:\workdir\gopath\src\golang.org\x\tools\go\loader\missing.go: The system cannot find the file specified.
C:\workdir\gopath\src\golang.org\x\tools\go\loader\testdata\badpkgdecl.go:1:34: expected 'package', found 'EOF'
C:\workdir\gopath\src\golang.org\x\tools\go\loader\testdata\badpkgdecl.go:1:34: expected 'package', found 'EOF'
\go\src\b\x.go:1:21: could not import c (cannot find package "c" in any of:
	\go\src\c (from $GOROOT)
	($GOPATH not set. For more details see: 'go help gopath'))
\go\src\b\x.go:1:21: could not import c (cannot find package "c" in any of:
	\go\src\c (from $GOROOT)
	($GOPATH not set. For more details see: 'go help gopath'))
\go\src\b\x.go:1:21: could not import c (\go\src\c\x.go:1:8: expected 'IDENT', found 'EOF')
\go\src\c\x.go:1:20: expected operand, found 'EOF'
cannot find package "two/three" in any of:
	\go\src\two\three (from $GOROOT)
	($GOPATH not set. For more details see: 'go help gopath')
cannot find package "http" in any of:
	\go\src\vendor\http (vendor tree)
	\go\src\http (from $GOROOT)
	($GOPATH not set. For more details see: 'go help gopath')
\go\src\c\x.go:1:31: cannot convert false (untyped bool constant) to type int
C:\workdir\go\src\cmd\cgo\internal\testsanitizers\cc_test.go:556:3: unknown field Pdeathsig in struct literal of type syscall.SysProcAttr
--- FAIL: TestStdlib (80.49s)
    stdlib_test.go:55: Load failed: couldn't load packages due to errors: cmd/cgo/internal/testsanitizers_test
FAIL
FAIL	golang.org/x/tools/go/loader	91.176s

https://build.golang.org/log/68018cc7868317a8acd303829ef65abfbcea625a

CC @bcmills @golang/release @golang/tools-team

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.SoonThis needs action soon. (recent regressions, service outages, unusual time-sensitive situations)TestingAn issue that has been verified to require only test changes, not just a test failure.release-blocker

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions