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

cmd/dist: building with GOFIPS140=latest fails with unexpected stale targets #70873

Open
FiloSottile opened this issue Dec 16, 2024 · 3 comments
Assignees

Comments

@FiloSottile
Copy link
Contributor

Go version

go version go1.24rc1 darwin/arm64

Output of go env in your module/workspace:

GONOPROXY='github.com/FiloSottile/*,filippo.io/*'
GOPROXY='https://proxy.golang.org'

What did you do?

GOFIPS140=latest ./make.bash

What did you see happen?

go tool dist: unexpected stale targets reported by /Users/filippo/go+go1.24/pkg/tool/darwin_arm64/go_bootstrap list -gcflags="" -ldflags="" for [cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile] (consider rerunning with GOMAXPROCS=1 GODEBUG=gocachehash=1):
	STALE cmd/asm: not installed but available in build cache
	STALE cmd/cgo: not installed but available in build cache
	STALE cmd/compile: not installed but available in build cache
	STALE cmd/link: not installed but available in build cache
	STALE cmd/preprofile: not installed but available in build cache

Full log https://gist.github.com/FiloSottile/503e0c566fb76ec4decf5a753da72efd

What did you expect to see?

A successful build resulting in a toolchain with GOFIPS140=latest baked in, per #70200.

Like all the other target configuration variables (for example, GOOS, GOARCH, GOARM, CC, CGO_ENABLED, ...), the GOFIPS140 setting during make.bash is "baked" into the toolchain as the default setting for builds with that toolchain.

/cc @rsc

@gabyhelp
Copy link

Related Issues

Related Code Changes

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@rsc rsc self-assigned this Dec 17, 2024
@rsc
Copy link
Contributor

rsc commented Dec 17, 2024

I see the problem. The solution not as much, but I'll figure it out.

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/637116 mentions this issue: cmd/go: drop fips140 build ID hacks

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

No branches or pull requests

4 participants