Skip to content

v0.37.1

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 08:14
abd93af

skillshare v0.37.1 Release Notes

TL;DR

  1. plugin prune --target omp removes the Oh My Pi marketplaces and cache that earlier updates left behind and nothing uses.
  2. OMP updates download first: a failed download no longer leaves you without the plugin.
  3. Tracked repos stay on their branch: update skips a repo checked out on another branch instead of merging upstream into it.
  4. Fixes for plugin enable and disable on a target with no binding, and for Python __pycache__ folders that blocked plugin sync.

Plugins: clean up old Oh My Pi marketplaces

Every OMP update installs into a fresh marketplace and cache and keeps the old one, because another project may still use it. Nothing ever removed them, so a month of hourly updates could leave dozens of marketplaces and hundreds of megabytes of cache.

skillshare plugin prune --target omp --dry-run -g   # list what would be removed
skillshare plugin prune --target omp -g             # remove it
  • Only what this configuration made, and nothing still in use. A marketplace stays while this configuration's plugin state names it, OMP lists it as installed, or the user registry, the current project, a project in OMP's project_registries.json index or a project any Skillshare configuration installed into still refers to its cache.
  • Nothing on doubt. If a registry, the index or a plugin state can't be read, nothing is removed.
  • Asks first. In a terminal, prune lists what it would remove and asks; with --no-tui or --json it removes without asking. --json reports removed and kept with each cache folder, snapshot and size.
  • update still never prunes.

Thanks to @salmonumbrella for the report. (#1168, #1180)

See Cleaning up old OMP marketplaces.

Plugins: fixes

  • OMP updates download before they remove. An OMP update removed this scope's registration and only then downloaded the new version, so a network failure left OMP without the plugin. The update, a source change and managing an import now download and check the new source first; if that fails, nothing is removed. Thanks to @salmonumbrella for the report. (#1167, #1176, #1177)
  • enable and disable on a target with no binding fail. They skipped a target the plugin has no binding for, saved nothing and exited 0. Now they fail: enable prints the plugin add command that adds that target, and disable says there is nothing to disable. Thanks to @salmonumbrella for the report. (#1170, #1178)
  • Python bytecode no longer blocks sync. When a plugin's Python script ran from its managed folder, the __pycache__ it left made the next sync, update or remove refuse with managed plugin snapshot was modified, for snapshots and for the local copies Cursor and Antigravity use. Those folders no longer count as edits; in a snapshot, the exception is a plugin whose source ships __pycache__ itself. When a folder is refused, the error now names it and the files that changed. (#1179)

Update: tracked repos checked out on another branch

A tracked repo records the branch it was cloned on, but update pulled upstream into whatever branch was checked out, merging it into your feature branch.

checked out feature, tracking main
  • update now skips such a repo with that reason and exits with an error, with --all, --force and --dry-run too. It never switches branches for you: switch back and update again.
  • install --track --update refuses it the same way, and check reports it as an error.
  • Dashboard. The Updates tab skips it with the same reason, and the tracked repositories list shows each repo's recorded branch and marks it On another branch.
  • A repo whose metadata records no branch keeps following its checkout.

Thanks to @salmonumbrella for the report. (#1172, #1174)

See Handling Conflicts.

Dashboard: Plugins page

  • Sync and update use the same icons as the rest of the dashboard.
  • In dark mode, the pending-sync box no longer has a brown fill. (#1179)

Contributors

@salmonumbrella