Skip to content
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

Let devs install microsoft/go similarly to go install golang.org/dl/go1.16.6 #146

Closed
dagood opened this issue Jul 29, 2021 · 1 comment
Closed
Assignees
Labels
Area-Acquisition New ways to acquire our build of Go

Comments

@dagood
Copy link
Member

dagood commented Jul 29, 2021

See https://golang.org/doc/manage-install#installing-multiple. (A partner team pointed it out to us as a way they get Go. In particular, to compare how different Go versions go when something strange is going on.)

https://github.com/golang/dl is a mirror of the golang.org/dl module's repo. It has a package for each version of Go: a small wrapper that can download that specific version to e.g. ~/sdk/go1.16.6, and after that, it redirects go1.16.6 [...] commands to that Go binary it downloaded.

The simplest-seeming thing to do would be to copy dl and provide a https://github.com/microsoft/go-dl module with e.g. a microsoft-go1.16.6 package that points at our blob storage instead of the tar.gz/zip files available on dl.google.com/go/.

@dagood dagood added the Area-Acquisition New ways to acquire our build of Go label Aug 19, 2022
@qmuntal qmuntal changed the title Let devs install microsoft/go similarly to go get golang.org/dl/go1.16.6 Let devs install microsoft/go similarly to go install golang.org/dl/go1.16.6 Sep 2, 2024
@dagood
Copy link
Member Author

dagood commented Oct 10, 2024

It occurred to me that if we publish prebuilt copies of these commands, they could be considered "installers", and because they're written in Go, we would be more familiar with how to maintain them than if we create MSI (#29) or macOS pkg (#1325), RPM (#1318), or Deb (#9) installers.

Publishing a prebuilt binary fixes the bootstrap issue: to go install, you need go, but you don't need Go to run a prebuilt Go app.

For context: upstream doesn't publish prebuilt copies of golang.org/dl. But they already support MSI and macOS pkg installers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Acquisition New ways to acquire our build of Go
Projects
None yet
Development

No branches or pull requests

2 participants