Skip to content

fix(golang): update Microsoft build of Go to 1.26.10-1 - #19611

Merged
Christopher Co (christopherco) merged 5 commits into
microsoft:4.0from
gdams:gdams-go-1.26.10-1
Oct 20, 2026
Merged

Christopher Co (christopherco) merged 5 commits into
microsoft:4.0from
gdams:gdams-go-1.26.10-1

Conversation

@gdams

@gdams George Adams (gdams) commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Update to Microsoft build of Go 1.26.10-1, using Fedora 43's matching Go 1.26.10 packaging and the verified Microsoft source archive.
  • Disable Microsoft telemetry by default through the installed go.env, replacing the old Go-code patch. Users can opt in through go env -w MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1 or the environment. The upstream test runner already sets this variable to 1 for its fake telemetry endpoint.
  • Update the bundled golang.org/x/net capability, refresh the component lock, and regenerate the spec and sources. A separate post-commit render commit keeps the generated changelog consistent.

Upstream telemetry configuration change: microsoft/go@0fd0ebb

Validation

  • Downloaded release archive and verified its SHA-256.
  • Refreshed the component lock; post-commit azldev comp render -p golang --check-only reports no drift.
  • Built the aarch64 RPMs with azldev comp build -p golang; the complete package test suite reported ALL TESTS PASSED.
  • Inspected the built RPM and installed the resulting Go packages in an Azure Linux mock chroot.
  • Smoke-tested the installed compiler by building and running gofmt and checking the toolchain version, DWARF setting, and OpenSSL FIPS-provider dependency.
  • Verified telemetry defaults to 0, environment opt-in works, persistent go env -w opt-in works, environment opt-out takes precedence, and removing the persistent preference restores the disabled default.

Unrelated local telemetry-policy component work is not included.

George Adams (gdams) and others added 2 commits October 20, 2026 18:20
Use Fedora's matching Go 1.26.10 packaging and the verified Microsoft source archive. Configure the telemetry default through go.env while retaining the upstream test-runner opt-in.

Co-authored-by: Copilot <[email protected]>
Regenerate the Go spec after committing the 1.26.10-1 component update.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 17:24
@gdams
George Adams (gdams) requested a review from a team as a code owner October 20, 2026 17:24

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.

🟢 Approval recommended

No blocking issues remain, and reported validation covers rendering, package builds, installed functionality, and telemetry preferences.

No open issues 🎉

What changed in this PR

Updates Azure Linux’s Go toolchain to Microsoft Go 1.26.10-1 with matching Fedora packaging and simpler telemetry configuration.

Changes:

  • Updates source pins, checksums, and the bundled x/net capability.
  • Disables Microsoft telemetry through go.env, preserving explicit opt-in.
  • Refreshes the component lock and generated packaging files.
File Description
specs/​g/​golang/​sources Updates the archive checksum.
specs/​g/​golang/​golang.spec Regenerates version, source, capability, and changelog entries.
specs/​g/​golang/​0007-Disable-msft-go-telemetry-by-default.patch Regenerates the telemetry configuration patch.
locks/​golang.lock Refreshes the upstream pin and fingerprints.
base/​comps/​golang/​overlays/​0008-microsoft-bundled-provides.overlay.toml Updates the bundled x/net version.
base/​comps/​golang/​overlays/​0007-disable-telemetry.overlay.toml Documents telemetry configuration and upstream provenance.
base/​comps/​golang/​overlays/​0001-microsoft-build-of-go-source.overlay.toml Selects the Microsoft Go release archive.
base/​comps/​golang/​golang.comp.toml Updates Fedora packaging and Microsoft source pins.
base/​comps/​golang/​0007-Disable-msft-go-telemetry-by-default.patch Replaces Go-code changes with a disabled go.env default.

Review effort: Balanced

Apply the render-check artifact generated from full repository history. The local shallow checkout had omitted historical Go component commits; only changelog entries change, with no changes to RPM build inputs.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 17:33

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.

🟢 Approval recommended

No blocking issues remain, and reported build, package, telemetry, and render validation support the focused update.

No open issues 🎉

Review effort: Balanced

George Adams (gdams) and others added 2 commits October 20, 2026 18:40
Trigger a fresh PR event after the previous run's base snapshot became stale. No package inputs or rendered files change.

Co-authored-by: Copilot <[email protected]>
Synchronize the PR base snapshot used by the render and lock checks. The Go component inputs are unchanged.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 17:43

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.

🟢 Approval recommended

No blocking issues remain, and reported validation covers rendering, package tests, installation, and telemetry configuration behavior.

No open issues 🎉

Review effort: Balanced

@liunan-ms

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@christopherco
Christopher Co (christopherco) merged commit 78000e4 into microsoft:4.0 Oct 20, 2026
12 of 14 checks passed
@gdams
George Adams (gdams) deleted the gdams-go-1.26.10-1 branch October 20, 2026 21:01
@gdams George Adams (gdams) changed the title fix(golang): update Microsoft Go to 1.26.10-1 fix(golang): update Microsoft build of Go to 1.26.10-1 Oct 20, 2026
Régis Desgroppes (rdesgroppes) added a commit to DataDog/datadog-agent that referenced this pull request Nov 6, 2026
### What does this PR do?
Patch the `msgo` SDK's `go.env` so that
`MS_GOTOOLCHAIN_TELEMETRY_ENABLED` defaults to `0`, as microsoft/go#2566
lets distributions do and microsoft/azurelinux#19611 does.

Users can still opt in through their environment or `go env -w`, which
both take precedence over `GOROOT/go.env`.

### Motivation
#58511 made `msgo` a Bazel SDK whose `go.env` enables Microsoft's
telemetry, which its `go build`, `go install` and `go run` send unless
`MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0` is set.

#58530 builds FIPS binaries with `bazel run //:msgo -- build`, only
opted out by the `ENV` that `DataDog/datadog-agent-buildimages` sets in
its images, leaving other hosts, developer ones included, sending it.

Opting out in the SDK itself covers every host and lets the build images
drop that `ENV`.

### Describe how you validated your changes
With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED` unset, checked on Linux and
Windows that `bazel run //:msgo -- env MS_GOTOOLCHAIN_TELEMETRY_ENABLED`
prints `0`, whereas it prints `1` on Linux without the patch.

With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1` on Linux, checked that it
prints `1`.

Checked that `MODULE.bazel.lock` is unchanged and that
`bazel run //bazel/buildifier:test` passes.

### Additional Notes
Unlike `--run_env=MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0`, the patch keeps
the user opt-in and covers every `go` command run from `@msgo`, not only
`bazel run //:msgo`.

The patch fails the SDK fetch should a later `msgo` release reword its
`go.env`, rather than silently leaving telemetry on.
gh-worker-dd-mergequeue-cf854d Bot pushed a commit to DataDog/datadog-agent that referenced this pull request Nov 6, 2026
### What does this PR do?
Patch the `msgo` SDK's `go.env` so that `MS_GOTOOLCHAIN_TELEMETRY_ENABLED` defaults to `0`, as microsoft/go#2566 lets distributions do and microsoft/azurelinux#19611 indeed does.

Users can still opt in through their environment or `go env -w`, which both take precedence over `GOROOT/go.env`.

### Motivation
#58511 made `msgo` a Bazel SDK whose `go.env` enables Microsoft's telemetry, which its `go build`, `go install` and `go run` send unless `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0` is set.

#58530 builds FIPS binaries with `bazel run //:msgo -- build`, only opted out by the `ENV` that `DataDog/datadog-agent-buildimages` sets in its images, leaving other hosts, developer ones included, sending it.

Opting out in the SDK itself covers every host and lets the build images drop that `ENV`.

### Describe how you validated your changes
With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED` unset, checked on Linux and Windows that `bazel run //:msgo -- env MS_GOTOOLCHAIN_TELEMETRY_ENABLED` prints `0`, whereas it prints `1` on Linux without the patch.

With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1` on Linux, checked that it prints `1`.

### Additional Notes
Unlike `--run_env=MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0`, the patch keeps the user opt-in and covers every `go` command run from `@msgo`, not only `bazel run //:msgo`.

The patch fails the SDK fetch should a later `msgo` release reword its `go.env`, rather than silently leaving telemetry on.

Co-authored-by: regis.desgroppes <[email protected]>
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.

4 participants