Skip to content

[release-branch.go1.27] go: report removal of ms_nocgo_opensslcrypto - #2444

Open
George Adams (gdams) wants to merge 1 commit into
microsoft/release-branch.go1.27from
dev/gadams/backport-cgoless-go1.27
Open

[release-branch.go1.27] go: report removal of ms_nocgo_opensslcrypto#2444
George Adams (gdams) wants to merge 1 commit into
microsoft/release-branch.go1.27from
dev/gadams/backport-cgoless-go1.27

Conversation

@gdams

Copy link
Copy Markdown
Member

Backport of #2443 to Go 1.27.

Report an actionable error when GOEXPERIMENT=ms_nocgo_opensslcrypto is set, explaining that CGO-free system crypto is enabled automatically on supported platforms since Go 1.27. This avoids the generic unknown GOEXPERIMENT error during upgrades.

Testing: Not run, per request. Patch extraction and equivalence checks completed successfully; git diff --check passed.

Backport the retired experiment diagnostic to Go 1.27 so users get actionable guidance instead of an unknown GOEXPERIMENT error.
Copilot AI lite review requested due to automatic review settings August 11, 2026 09:29
@gdams
George Adams (gdams) requested a review from a team as a code owner August 11, 2026 09:29
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports upstream PR #2443 to the Go 1.27 release branch by improving GOEXPERIMENT parsing diagnostics: instead of a generic unknown GOEXPERIMENT error, it returns a targeted migration message when the removed ms_nocgo_opensslcrypto experiment is present, and adds focused unit coverage in internal/buildcfg.

Changes:

  • Add a specific ParseGOEXPERIMENT error for GOEXPERIMENT=ms_nocgo_opensslcrypto, explaining the Go 1.27 behavior.
  • Extend internal/buildcfg tests to assert the new migration error text.

Patches are happy!

Show a summary per file
File Description
patches/0002-Add-crypto-backends.patch Updates the backport patch to emit an actionable migration error for ms_nocgo_opensslcrypto and adds a corresponding internal/buildcfg test case.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants