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
internal/configgen: add special handling for toolchain program versions
Main module version information is not stamped in toolchain binaries,
and therefore we do not have a program version for toolchain programs.
Rather than add special handling for toolchain programs in many places,
to handle the missing version, instead enforce the convention that for
toolchain programs, program version == go version.
Specifically:
- Add internal/telemetry.{IsToolchainProgram,ProgramInfo}, to share the
logic for interrogating program information.
- Update ProgramInfo to reuse the go version as program version for
toolchain programs.
- Update config generation to reuse the go version list as program
version list, for toolchain programs.
- Use the go/version package rather than copying it, now that it is
available. This means that the config generator requires go1.22, which
should be fine as it is only run by developers or RelUI.
- Update config generation and validation to use go/version package
rather than semver package for working with toolchain program
versions.
- Move chartconfig.Validate to configgen.ValidateChartConfig, since
validation now requires the go/version package and requires go1.22
(chartconfig is linked by more packages).
For golang/go#67244
Change-Id: I226b18d37e1ad973002b19afa8afdb8cf97b358c
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/585198
Auto-Submit: Robert Findley <[email protected]>
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
0 commit comments