You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ // Parse the comma-separated GOEXPERIMENT string
125
128
+ for i := 0; i < len(goexperiment); {
126
129
+ // Find the start of the next experiment name
127
130
+ start := i
128
131
+ for i < len(goexperiment) && goexperiment[i] != ',' {
129
132
+ i++
130
133
+ }
131
134
+ experiment := goexperiment[start:i]
132
-
+ if experiment == "systemcrypto" {
135
+
+ if experiment == backend {
133
136
+ return true
134
137
+ }
135
138
+ if i < len(goexperiment) {
136
139
+ i++ // skip the comma
137
140
+ }
138
141
+ }
139
-
+
140
142
+ return false
141
143
+}
142
144
+
@@ -161,12 +163,16 @@ index 00000000000000..dd19b51a8112f1
161
163
+
162
164
+// emitGitHubActionsWarning outputs a GitHub Actions warning
163
165
+func emitGitHubActionsWarning(backend string) {
164
-
+ fmt.Fprintf(os.Stderr, "::warning::GOEXPERIMENT=%s is deprecated. Use GOEXPERIMENT=systemcrypto instead, or remove GOEXPERIMENT entirely as systemcrypto is now the default.\n", backend)
166
+
+ fmt.Fprintf(os.Stderr,
167
+
+ "::warning title=GOEXPERIMENT_DEPRECATED::GOEXPERIMENT=%s is deprecated. Use GOEXPERIMENT=systemcrypto instead, or remove GOEXPERIMENT entirely as systemcrypto is now the default.\n",
168
+
+ backend)
165
169
+}
166
170
+
167
171
+// emitAzureDevOpsWarning outputs an Azure DevOps warning
168
172
+func emitAzureDevOpsWarning(backend string) {
169
-
+ fmt.Fprintf(os.Stderr, "##vso[task.logissue type=warning]GOEXPERIMENT=%s is deprecated. Use GOEXPERIMENT=systemcrypto instead, or remove GOEXPERIMENT entirely as systemcrypto is now the default.\n", backend)
173
+
+ fmt.Fprintf(os.Stderr,
174
+
+ "##vso[task.logissue type=warning;code=GOEXPERIMENT_DEPRECATED;]GOEXPERIMENT=%s is deprecated. Use GOEXPERIMENT=systemcrypto instead, or remove GOEXPERIMENT entirely as systemcrypto is now the default.\n",
0 commit comments