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
The current telemetry upload logic uses go mod download golang.org/x/telemetry/config@latest
to download the current upload configuration.
When the go command is the uploader, the go command can avoid this extra subprocess
by directly accessing its go mod download implementation. To enable this, we need a hook to register the custom implementation. For example,
package telemetry
typeConfigstruct {
...// UploadConfig, if set, is used to retrieve the upload config.// Otherwise, the program downloads the config using `go mod download`.UploadConfig(ctx context.Context, versionstring) (cfg*UploadConfig, resolvedVersionstring, _error)
}
The text was updated successfully, but these errors were encountered:
The current telemetry upload logic uses
go mod download golang.org/x/telemetry/config@latest
to download the current upload configuration.
When the go command is the uploader, the go command can avoid this extra subprocess
by directly accessing its go mod download implementation. To enable this, we need a hook to register the custom implementation. For example,
The text was updated successfully, but these errors were encountered: