-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/dist: telemetry support #71826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The make.bash script is basically using the bootstrap Go toolchain (in this case 1.24) to run the command Note that cmd/dist already copies some standard library code into its own sources, such as copying part of go/build into cmd/dist/imports.go. Perhaps something along those lines could work here. That said do we expect to learn much from enabling telemetry for cmd/dist? |
Thanks, perhaps I'm focusing too much on whether I could rather than whether I should. A comment in the CL says it will eventually be enabled for |
Agreed, I think until there is a strong reason for telemetry in cmd/dist, let's not worry about it. |
CL 585235 added telemetry for commands in cmd, except for cmd/dist.
Since cmd/dist is built with the bootstrap toolchain, enabling telemetry requires Go 1.23 or later.
Go 1.24 requires Go 1.22 for bootstrapping, and Go 1.26 will require Go 1.24 or later, as described in golang/go#69315. If I understand correctly, we will need to wait until the Go 1.26 dev cycle to enable telemetry in cmd/dist.
I'm trying to prototype telemetry in cmd/dist and compile it using Go 1.24 as the bootstrap toolchain to validate this, but I'm encountering the following error:
I'm not sure whether this means cmd/dist should be allowed to import internal packages in 1.24 or if the issue is unrelated. Either way, we will need to address this at some point, so it's still worth including this issue in a milestone.
cc @golang/telemetry
The text was updated successfully, but these errors were encountered: