aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-12-14 08:34:28 +0000
committerSean Liao <sean@liao.dev>2025-12-15 07:30:41 -0800
commit4eb0af2c34bf5ae5d7e04cc47cd8f7b6269ef079 (patch)
tree2b9d6fd9804376a82077195533affcc8dbc6a339
parent9bbfb19312a062d689d0dec4d805a609996def85 (diff)
downloadgo-x-pkgsite-4eb0af2c34bf5ae5d7e04cc47cd8f7b6269ef079.tar.xz
internal/fetch: add runtimesecret and simd goexperiments
For golang/go#21865 For golang/go#71488 For golang/go#73787 Change-Id: Iedb7c007de2ab3840c98b604720f81196a6a6964 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/729900 Reviewed-by: Ethan Lee <ethanalee@google.com> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> kokoro-CI: kokoro <noreply+kokoro@google.com>
-rw-r--r--internal/fetch/load.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/fetch/load.go b/internal/fetch/load.go
index 7d9cdde9..82667f9e 100644
--- a/internal/fetch/load.go
+++ b/internal/fetch/load.go
@@ -439,6 +439,10 @@ func matchingFiles(goos, goarch string, importPath string, allFiles map[string][
switch importPath {
case "encoding/json/v2", "encoding/json/jsontext":
bctx.BuildTags = append(bctx.BuildTags, "goexperiment.jsonv2")
+ case "runtime/secret":
+ bctx.BuildTags = append(bctx.BuildTags, "goexperiment.runtimesecret")
+ case "simd", "simd/archsimd":
+ bctx.BuildTags = append(bctx.BuildTags, "goexperiment.simd")
}
// Copy the input map so we don't modify it.