Skip to content

[release-branch.go1.27] freebsd: enable systemcrypto with cgo on all architectures - #2477

Merged
George Adams (gdams) merged 1 commit into
microsoft/release-branch.go1.27from
dev/gadams/freebsd386-go1.27
Aug 24, 2026
Merged

[release-branch.go1.27] freebsd: enable systemcrypto with cgo on all architectures#2477
George Adams (gdams) merged 1 commit into
microsoft/release-branch.go1.27from
dev/gadams/freebsd386-go1.27

Conversation

@gdams

Copy link
Copy Markdown
Member

Backports the FreeBSD portion of #2474 to Go 1.27.

  • Keep systemcrypto enabled for all FreeBSD architectures when cgo is available.
  • Fail explicitly on unsupported FreeBSD architectures when cgo is disabled.
  • Update the generated cross-platform crypto documentation.
  • Leave Windows support unchanged; windows/386 remains unsupported on this branch.

Validation:

  • go test internal/systemcrypto
  • go test internal/platform -run '^$'\n- go test cmd/dist -run '^$'\n- go test cmd/go -run '^TestSystemCryptoFreeBSDNoCgo$'\n- go test ./cmd/updatecryptodocs

…architectures

Keep systemcrypto enabled for all FreeBSD targets and emit an explicit build failure when an unsupported architecture is built without cgo. Leave Windows systemcrypto support unchanged.

Backport the FreeBSD portion of #2474.
Copilot AI lite review requested due to automatic review settings August 24, 2026 14:56
@gdams
George Adams (gdams) requested a review from a team as a code owner August 24, 2026 14:56
@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 FreeBSD systemcrypto support for Go 1.27.

Changes:

  • Enables all FreeBSD architectures with cgo.
  • Adds explicit failures and regression coverage for unsupported no-cgo targets.
  • Updates cryptography documentation and its generator template.
Show a summary per file
File Description
patches/0002-Add-crypto-backends.patch Adds FreeBSD support logic, diagnostics, and tests.
eng/doc/CrossPlatformCryptography.md Updates FreeBSD support documentation.
eng/_util/cmd/updatecryptodocs/header.md Updates the documentation generator template.

Review details

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

Suppressed comments (1)

eng/doc/CrossPlatformCryptography.md:34

  • This new support statement makes the existing platform-support references in eng/doc/fips/README.md:122 and docs/go1.27.md:25 inaccurate: both still say FreeBSD systemcrypto is limited to amd64/arm64. Please update those companion documents (and any generated/source counterpart) in the same change so users do not get conflicting architecture guidance.
All FreeBSD architectures are supported with cgo enabled; without cgo, only `amd64` and `arm64` are supported.
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

@gdams
George Adams (gdams) merged commit b59cc78 into microsoft/release-branch.go1.27 Aug 24, 2026
57 checks passed
@gdams
George Adams (gdams) deleted the dev/gadams/freebsd386-go1.27 branch August 24, 2026 15:44
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.

3 participants