Skip to content

v0.6.1 β€” upgrade actually updates moshcode 🀘

Choose a tag to compare

@ralyodio ralyodio released this 12 Jul 23:57
· 339 commits to main since this release

🎸 moshcode v0.6.1 β€” upgrade now really updates moshcode

moshcode upgrade / update always tried to self-update in addition to engines, but it reinstalled to the default ~/.moshcode. If your moshcode lived anywhere else, the reinstall went to a different directory and the moshcode on your PATH never changed.

Fixed:

  • Targets the actual running install β€” the self-upgrade now points the installer at the exact dir moshcode runs from (resolved from import.meta.url), so that copy updates.
  • Reports the version change β€” moshcode 0.6.0 β†’ 0.6.1 β€” restart to load it, or already at X.
  • Git-checkout safe β€” if you run moshcode from a git clone, it skips the destructive reinstall and tells you to git pull instead of wiping your working tree.

Engines are unchanged; self runs in addition to them on a bare moshcode upgrade.