Skip to content

Commit

Permalink
remove allowcryptofallback logic from the buildutil
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 17, 2025
1 parent 654eb65 commit da6b804
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions eng/_util/buildutil/buildutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"log"
"os"
"strconv"
"strings"
)

// Retry runs f until it succeeds or the attempt limit is reached.
Expand Down Expand Up @@ -86,16 +85,6 @@ func GetEnvOrDefault(varName, defaultValue string) (string, error) {
// AppendExperimentEnv sets the GOEXPERIMENT env var to the given value, or if GOEXPERIMENT is
// already set, appends a comma separator and then the given value.
func AppendExperimentEnv(experiment string) {
// If the experiment enables a crypto backend, allow fallback to Go crypto. Go turns off cgo
// and/or cross-builds in various situations during the build/tests, so we need to allow for it.
if strings.Contains(experiment, "opensslcrypto") ||
strings.Contains(experiment, "cngcrypto") ||
strings.Contains(experiment, "boringcrypto") ||
strings.Contains(experiment, "darwincrypto") ||
strings.Contains(experiment, "systemcrypto") {

experiment += ",allowcryptofallback"
}
if v, ok := os.LookupEnv("GOEXPERIMENT"); ok {
experiment = v + "," + experiment
}
Expand Down

0 comments on commit da6b804

Please sign in to comment.