Repository navigation
fix(golang): update Microsoft build of Go to 1.26.10-1 - #19611
Merged
Christopher Co (christopherco) merged 5 commits intoOct 20, 2026
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
🟢 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/netcapability. - 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]>
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]>
Contributor
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Christopher Co (christopherco)
approved these changes
Oct 20, 2026
Christopher Co (christopherco)
merged commit Oct 20, 2026
78000e4
into
microsoft:4.0
12 of 14 checks passed
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go.env, replacing the old Go-code patch. Users can opt in throughgo env -w MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1or the environment. The upstream test runner already sets this variable to1for its fake telemetry endpoint.golang.org/x/netcapability, 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
azldev comp render -p golang --check-onlyreports no drift.azldev comp build -p golang; the complete package test suite reportedALL TESTS PASSED.gofmtand checking the toolchain version, DWARF setting, and OpenSSL FIPS-provider dependency.0, environment opt-in works, persistentgo env -wopt-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.