From: Cherry Mui Date: Thu, 11 Dec 2025 19:15:08 +0000 (-0500) Subject: runtime/secret: guard files with goexperiment X-Git-Tag: go1.26rc1~1^2~12 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8d31244562;p=gostls13.git runtime/secret: guard files with goexperiment 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase --- diff --git a/src/runtime/secret/export.go b/src/runtime/secret/export.go index 34f3c378f3..f7d8cd4e2b 100644 --- a/src/runtime/secret/export.go +++ b/src/runtime/secret/export.go @@ -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 ( diff --git a/src/runtime/secret/stubs_noasm.go b/src/runtime/secret/stubs_noasm.go index f8091ff393..8302642cdf 100644 --- a/src/runtime/secret/stubs_noasm.go +++ b/src/runtime/secret/stubs_noasm.go @@ -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