Skip to content

v2.2.1

Choose a tag to compare

@michaelaguiar michaelaguiar released this 28 Oct 21:39
· 23 commits to main since this release
v2.2.1
b34c169

Fixes

  • ingot update works without a GitHub token. Ingot's repository is now public, so no token or gh login is needed. Earlier versions only requested the binary when they had a token. Without one, GitHub returned the asset's JSON description, and that was installed in place of ingot. The updater now always requests the binary, and it rejects a download whose size doesn't match the release. (#8)
  • If GitHub rejects the token (expired or revoked), the updater drops it and tries again without it, instead of failing.

Upgrade notes

  • If you're on 2.2.0 or earlier with no GITHUB_TOKEN set and no gh login, update by re-downloading instead of running ingot update:
    curl -fsSLo ingot https://github.com/aliasproject/ingot/releases/latest/download/ingot-<os>-<arch> && chmod +x ingot && sudo mv ingot /usr/local/bin/ingot
    If ingot already prints errors such as syntax error, it was replaced by that JSON file. The same command fixes it.