const ModulePath … const configFileName … var needNoConsole … var downloads … // Downloads reports, for testing purposes, the number of times [Download] has // been called. func Downloads() int64 { … } // Download fetches the requested telemetry UploadConfig using "go mod // download". If envOverlay is provided, it is appended to the environment used // for invoking the go command. // // The second result is the canonical version of the requested configuration. func Download(version string, envOverlay []string) (*telemetry.UploadConfig, string, error) { … }