]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix -changed don`t print when GOFIPS140 is non-default
authorqiulaidongfeng <2645477756@qq.com>
Wed, 20 Nov 2024 16:01:36 +0000 (00:01 +0800)
committerMichael Matloob <matloob@golang.org>
Thu, 21 Nov 2024 16:35:55 +0000 (16:35 +0000)
commitf5973c2183d64f93816c0a28189cdd3f263036fb
tree599c9f018004c0a8cd3d10b7a158ea192c5752d4
parent4671276c5d5f2e51dd43e856267eac44cff18652
cmd/go: fix -changed don`t print when GOFIPS140 is non-default

See https://github.com/golang/go/issues/70200#issuecomment-2468562595,
GOFIPS140 value when building the toolchain (off when not set)
is the default value for GOFIPS140,
it is buildcfg.defaultGOFIPS140,
export as buildcfg.DefaultGOFIPS140 that can be used in the cmd/go.

For #70200

Change-Id: I5a4873a718eeefda8e65bfab51d9d3d5ad2c21b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/629996
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/cmd/dist/buildruntime.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/testdata/script/env_changed.txt
src/internal/buildcfg/cfg.go