]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: disable FIPS 140-3 mode when testing maphash with purego
authorqmuntal <quimmuntal@gmail.com>
Mon, 22 Sep 2025 10:59:20 +0000 (12:59 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 22 Sep 2025 15:07:18 +0000 (08:07 -0700)
hash/maphash can't be built with FIPS 140-3 mode and the purego tag
since CL 703095. That change precludes running "GODEBUG=fips140=on go
dist test" with, as there is a test variant that tests maphash with the
purego tag.

Change-Id: Iaedfaf3bb79281a799ef95283310c96d2e64207f
Reviewed-on: https://go-review.googlesource.com/c/go/+/705775
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/dist/test.go

index 7c26d001bce4e16b877041145d7911f02464800b..1e74438f48db39ea2c90f6b6b86b28646e3125a7 100644 (file)
@@ -705,6 +705,7 @@ func (t *tester) registerTests() {
                                timeout: 300 * time.Second,
                                tags:    []string{"purego"},
                                pkg:     "hash/maphash",
+                               env:     []string{"GODEBUG=fips140=off"}, // FIPS 140-3 mode is incompatible with purego
                        })
        }