Skip to content

docs: restore snap installation instructions for v1.3 - #557

Merged
FeynmanZhou merged 1 commit into
oras-project:mainfrom
TerryHowe:fix/restore-snap-install-docs
Apr 15, 2026
Merged

FeynmanZhou merged 1 commit into
oras-project:mainfrom
TerryHowe:fix/restore-snap-install-docs

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

Summary

The snap installation section was removed from the v1.3 docs, which prompted issue oras-project/oras#1965. Now that the snap release workflow is active and publishing to the Snap Store (as of oras-project/oras#2011), restore the installation instructions.

Changes

  • Adds a Snap section to versioned_docs/version-1.3/installation.mdx with snap install oras --classic
  • Includes a note explaining that --classic is required because ORAS uses classic confinement to access files outside the snap sandbox
  • Adds Snap to the list of package managers mentioned in the verification note

Why --classic is required

ORAS is a CLI tool that reads and writes files at arbitrary paths provided by the user. Strict snap confinement would prevent this, so classic confinement is intentional and the --classic flag is unavoidable.

Fixes oras-project/oras#1965

The snap installation section was removed from the v1.3 docs. Now that
the snap release workflow is active and publishing to the Snap Store,
restore the installation instructions with the required --classic flag.

ORAS uses classic confinement to access files outside the snap sandbox,
so users need to pass --classic when installing.

Fixes oras-project/oras#1965

Signed-off-by: Terry Howe <[email protected]>

@FeynmanZhou FeynmanZhou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @TerryHowe

@FeynmanZhou
FeynmanZhou merged commit f48844a into oras-project:main Apr 15, 2026
7 checks passed
TerryHowe pushed a commit that referenced this pull request Nov 14, 2026
## Summary

The Homebrew, WinGet, Nix and GitHub Actions sections were removed from
the 1.3.0-beta installation page in #458, with a note that these package
managers "will be updated after the stable release". 1.3 has been GA
since 1.3.0 and the page is now on v1.3.6, but only Snap came back
(#557). The latest installation page still has that note, while the home
page tells readers to run `brew install oras` and `winget install oras`.

All of these channels ship 1.3.x today, so this PR documents them again
on the 1.3 page:

- **Homebrew**: `brew install oras`. homebrew-core has 1.3.6 bottles for
macOS and Linux
- **WinGet**: `winget install oras --version 1.3.6` in the Windows
section, pinned like the other 1.3 snippets and the 1.2 page.
`ORASProject.ORAS` 1.3.6 is in winget-pkgs
- **GitHub Actions**: `oras-project/setup-oras@v2` with `version:
1.3.6`, so the 1.3 page keeps installing 1.3 after the action's default
moves on (the 1.2 page still shows `@v1`)
- **Runner images**: ORAS CLI is preinstalled on the Ubuntu 22.04 image
used by GitHub-hosted runners and Azure Pipelines agents. Ubuntu 20.04,
which the 1.2 page lists, has been retired
- **Nix**: `nix-env -iA nixpkgs.oras`, linking to the package's current
location under `pkgs/by-name` (the link on older pages points to a path
that no longer exists)

Channels not run by the ORAS community keep the "may not be the latest
version" note used on the older pages. The stale "will be updated after
the stable release" note is removed.

Fixes #688

## Validation

- `nix-env -iA nixpkgs.oras` in a `nixos/nix` container installs oras
1.3.5 and `oras version` runs
- checked the Homebrew formula API (`stable: 1.3.6`, Linux and macOS
bottles), the `ORASProject.ORAS` 1.3.6 manifest in winget-pkgs, the
setup-oras v2 release data (includes 1.3.6), and the Ubuntu 22.04 runner
image readme (lists ORAS CLI 1.3.6)
- all new external links return 200, and the `#cli-tools` and
`#advanced-usage` anchors exist
- `npm test`, `npm run check-links` and `npm run build` pass.
`refresh-commands` leaves the generated command pages unchanged, and
`/docs/installation` renders the new sections and notes
- `vale` reports no issues in
`versioned_docs/version-1.3/installation.mdx`

Signed-off-by: NopeCharon <[email protected]>
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

Successfully merging this pull request may close these issues.

snap install problem

2 participants