]> git.feebdaed.xyz Git - 0xmirror/go.git/commitdiff
runtime/secret: guard files with goexperiment
authorCherry Mui <cherryyz@google.com>
Thu, 11 Dec 2025 19:15:08 +0000 (14:15 -0500)
committerCherry Mui <cherryyz@google.com>
Fri, 12 Dec 2025 19:09:19 +0000 (11:09 -0800)
So if the goexperiment is not enabled, we don't expose an empty
package.

Change-Id: I57c1edac92f51b307d789d8d9bb3b505769af589
Reviewed-on: https://go-review.googlesource.com/c/go/+/729361
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/secret/export.go
src/runtime/secret/stubs_noasm.go

index 34f3c378f3ea8cfbeeea10e857491e2450e35d8a..f7d8cd4e2b138ff9b4212db218b491e4993c9894 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build goexperiment.runtimesecret
+
 package secret
 
 import (
index f8091ff393fd16d211e8bd78d62c9fad4e598f00..8302642cdf85b7f64aaa296f9ebbc44bc1bf50a4 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build !arm64 && !amd64
+//go:build goexperiment.runtimesecret && !arm64 && !amd64
 
 package secret