Skip to content

Commit 4db5a4a

Browse files
committed
Remove pre-downloading of go modules
1 parent 67096f0 commit 4db5a4a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

magefile.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,6 @@ func (Test) Unit(ctx context.Context) error {
488488
func (Test) FIPSOnlyUnit(ctx context.Context) error {
489489
mg.Deps(Prepare.Env, Build.TestBinaries)
490490

491-
// We pre-cache go module dependencies before running the unit tests with
492-
// GODEBUG=fips140=only. Otherwise, the command that runs the unit tests
493-
// will try to download the dependencies and could fail because the TLS
494-
// negotiation with the Go module proxy could use a non-FIPS compliant
495-
// key exchange protocol, e.g. X25519.
496-
RunGo("mod", "download")
497-
498491
params := devtools.DefaultGoTestUnitArgs()
499492
params.Env["FIPS"] = "true"
500493

0 commit comments

Comments
 (0)