Skip to content

v0.3.1

Choose a tag to compare

@Abdul-Omira Abdul-Omira released this 25 Aug 23:57
· 72 commits to main since this release

Koder v0.3.1 repairs self-updating. Every earlier release shipped with a broken
install detector, so koder upgrade failed outright and background updates were
silently disabled.

If you already have Koder installed, read this

koder upgrade cannot bring you to this release. The defect is compiled into
v0.2.4 and v0.3.0, so those builds can neither upgrade themselves nor be updated
automatically — they will never reach v0.3.1 on their own.

Run the installer once to get onto a build that updates itself from then on:

curl -fsSL https://github.com/aixplain/koder/releases/latest/download/install | bash

Your configuration, credentials and session history are untouched by this.

What was wrong

The installer keeps each release in ~/.koder/versions/<version>/ and points
~/.koder/bin/koder at the active one through a symlink, so that a bad release
can be rolled back with a symlink swap. The running process reports its resolved
path — the versioned one — but the install-method detection only recognised the
bin directory. It therefore concluded that Koder had been installed by some
unknown package manager and refused to act:

●  Using method: unknown
■  Upgrade failed
■  Unknown method: unknown

Three things hung off that single misdetection:

  • koder upgrade failed on every install made by the shell installer.
  • Background updates never ran. With the method unknown, the updater skipped
    itself rather than risk running the wrong package manager, so patch releases
    were never picked up.
  • koder uninstall left most of itself behind. It offered to remove one
    versioned binary while leaving the bin directory, the command aliases, the
    PATH entry and every other installed version on disk — potentially hundreds
    of megabytes.

Fixed

  • Install detection now identifies the install by its home directory rather than
    one subdirectory of it, so a future change to the on-disk layout cannot quietly
    break upgrades again.
  • koder uninstall finds the install root by name instead of guessing a fixed
    depth above the binary, and so removes the whole tree. The guard that prevents
    a destructive suggestion outside a Koder-owned directory is now stricter than
    before, not weaker.
  • Background updates work again for installs made by the shell installer.

Platforms

macOS (Apple Silicon, Intel), Linux (x64, arm64) and Windows (x64). macOS builds
are signed with aiXplain's Developer ID certificate and notarized by Apple.

Notes

No configuration, credential or session-storage formats changed. Upgrading from
v0.3.0 requires no migration, and downgrading remains a symlink swap
(koder upgrade 0.3.0).