Files
Charitarth ChughandClaude Opus 5.5 64c8a3f34e feat: add Nix flake and handle Nix-store installs in upgrade (#764)
* feat: add Nix flake and stop self-upgrade of Nix-store installs

Add flake.nix with packages, overlays.default, checks and a formatter,
building nix/package.nix with the unit tests in the Nix sandbox. The
version comes from the Release Please manifest, so releases need no Nix
edit. A Nix workflow runs `nix flake check` on non-docs changes.

`skillshare upgrade` now detects binaries under /nix/store/ and prints
`nix profile upgrade skillshare` instead of replacing a read-only store
path; update notices and doctor suggest the same command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(upgrade): give Nix installs the right update path everywhere

The first flake commit sent every /nix/store binary to `nix profile
upgrade`, failed a plain `skillshare upgrade` with exit 1 even when the
CLI was current, and left the dashboard with a generic 500.

- Tell `nix profile` installs (the profile manifest lists the store path)
  from NixOS, Home Manager and overlay installs, which are told to update
  their configuration and rebuild. Detection lives in one helper shared by
  the update notice, doctor, upgrade and the dashboard.
- `upgrade` on Nix reports "already up to date" or prints the hint and
  exits 0; the built-in skill still updates.
- The dashboard runs the upgrade so the skill updates, then answers
  409 `upgrade.nix` with the command when a newer CLI waits on Nix. The
  UI shows localized text for it in all 11 locales.
- Installs skip the unit tests; the flake's checks enable them. postPatch
  lowers only the go directive's patch version and fails evaluation with
  a clear message when go.mod needs a newer Go minor. CI also builds the
  package on macOS.
- Docs, translations, the built-in skill reference and the release topic
  describe the new behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 15:53:57 +08:00

1.5 KiB

sidebar_position
sidebar_position
6

version

Show the current skillshare version.

When to Use

  • Check which version you're running before reporting a bug
  • Verify an upgrade was successful
  • Compare your version against the latest release

Synopsis

skillshare version
skillshare -v
skillshare --version

Example Output

skillshare version 0.16.6

Update Notifications

When a newer version is available, skillshare displays an update notification after commands that support it. The notification is Homebrew-aware: if skillshare was installed via Homebrew, it queries brew info for the latest formula version and suggests brew upgrade skillshare; otherwise it checks GitHub releases and suggests skillshare upgrade.

Detection is automatic — skillshare resolves its own executable path and checks whether it resides under a Homebrew Cellar prefix (e.g. /opt/homebrew/Cellar/skillshare/). A binary under /nix/store/ checks GitHub releases. It suggests nix profile upgrade skillshare when the binary is in your nix profile, and otherwise tells you to update skillshare in your Nix configuration and rebuild.

Version checks are cached for 24 hours at ~/.cache/skillshare/version-check.json.

See Also

  • upgrade — Upgrade to latest version
  • doctor — Full environment diagnostics
  • status — Show sync state including version info