Skip to content

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 05 Sep 22:03
· 77 commits to main since this release

Fixed

  • Run coport over SSH again. Registry resolution treated any non-TTY
    stdin as a piped registry, without checking that anything had been piped. So
    ssh node coport --all, cron, systemd units, CI steps, and any invocation
    with < /dev/null read an empty fd 0 and died with
    Registry is not valid JSON: Unexpected EOF — never reaching the config file
    or the built-in default that the run was relying on. stdin is now drained
    once during resolution and used only when it actually carries a document; an
    empty read falls through to the next source. An explicit - argument still
    forces stdin, and piping a registry still works.
  • Keep the installs a run has already finished. ~/.coport/cache.json was
    written once, after every install settled, so an interrupt partway through a
    multi-template run — Ctrl-C, a crash, a reboot — lost the record of every
    template it had successfully installed. Those templates exist on the node,
    but --list and --upgrade no longer knew about them and their VMIDs
    stopped being sticky, so the next run reassigned around the very VMIDs its
    own templates occupied. Each successful install is now flushed as it lands.
    Writes are serialised against each other and staged through a temp file that
    is renamed over the cache, since a file written this often can be killed
    mid-write.