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

Consider go install instructions as another option for installing from latest #137

Open
AaronFriel opened this issue Mar 29, 2023 · 0 comments

Comments

@AaronFriel
Copy link

AaronFriel commented Mar 29, 2023

This installation method enables users to download and install any version published as a tag, the latest tag, or a branch. It can be a convenient way to install on platforms or CI environments where local scripting tools can vary wildly, but a Go compiler is available due to a previous step in the CI pipeline or by the container image.

It's common for tools to suggest this as the quickest way to install from source, without requiring users to clone a repository.

Example commands:

# install the most recently tagged version
go install oras.land/oras/cmd/oras@latest

# use the tip of a ref, e.g.: main
go install oras.land/oras/cmd/oras@main

# use a specific tag, e.g.: v1.0.0
go install oras.land/oras/cmd/[email protected]

The security purist in me doesn't like that this method lacks certain supply chain security characteristics - these binaries cannot be signed - but these instructions are protected by the same mechanism as Go dependencies are via the Go module proxy. When using tagged versions, the tag is checked against sum.golang.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant