Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions dev-tools/packaging/testing/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,13 +844,12 @@ func checkFIPS(t *testing.T, agentPackageRootDir string) {
case "-tags":
foundTags = true
require.Contains(t, setting.Value, "requirefips")
// the check on ms_tls13kdf is no longer needed for go >= 1.25
// It should probably be conditioned to the output of `go version <binary>`
// for example:
// go version elastic-agent-9.2.0-SNAPSHOT-linux-x86_64/data/elastic-agent-7b3817/components/apm-server
// elastic-agent-9.2.0-SNAPSHOT-linux-x86_64/data/elastic-agent-7b3817/components/apm-server: go1.25.1
//
// require.Contains(t, setting.Value, "ms_tls13kdf")

// Check if the ms_tls13kdf build tag is set only if the binary was built
// with go1.24.x (see https://github.com/microsoft/go/pull/1662).
if strings.HasPrefix(info.GoVersion, "go1.24") {
require.Contains(t, setting.Value, "ms_tls13kdf")
}
continue
case "GOEXPERIMENT":
foundExperiment = true
Expand Down
Loading