Skip to content

Releases: cashapp/hermit

v0.44.7

24 Apr 00:58
87d2bb4
Compare
Choose a tag to compare
fix: Improve error message when binaries are missing (#476)

If the required binaries are missing it indicates there was a problem
with the installation of the package being used.
Updates the error messages so that it's clearer how the user can
potentially remedy the situation.

v0.44.6

22 Apr 04:59
c069261
Compare
Choose a tag to compare

What's Changed

  • chore(deps): update all non-major dependencies by @renovate in #469
  • refactor: Refactor Hermit to support reporting different exit codes by @wsutina in #471
  • perf(manifest): speed up ParseVersion by @nickajacks1 in #472
  • fix: skipping activation when already activated should exit cleanly by @mpeyper in #474

New Contributors

Full Changelog: v0.44.5...v0.44.6

v0.44.5

04 Apr 01:28
20fb51c
Compare
Choose a tag to compare
Use kong exit (#468)

## Description

Replace direct calls to `os.Exit` with `Kong.Exit` to ensure proper Kong
exit handling

---------

Co-authored-by: Bob Lail <lail@squareup.com>

v0.44.4

26 Mar 23:31
8579dd3
Compare
Choose a tag to compare
perf(exec): improve performance (#448)

The previous attempt in 9a9737ec668f5aa01cb8a2b83d5832654d6e4997 (#433)
had an invalid method of detecting when environment variables needed to
be parsed, so it was reverted in
cc90510721cc58923414ce1efd339b3e2ffb20b8 (#442). This attempt takes the
approach of instead checking if the binary being executed is inside the
currently activated environment. If not, then we load the environment
variables of all packages in the exec'd binary's environment. It may be
possible to get away with only parsing the package's dependencies, but
I'm not confident that would correctly handle all present use cases.

v0.44.3

12 Mar 01:23
de127df
Compare
Choose a tag to compare
chore(deps): Update to kong@1.9.0 (#450)

This pull request has 3 commits. Kong v0.9.0 has a couple of breaking
changes for `hermit`, so:
1. The first commit updates from Kong 0.5.0 → 0.8.1 safely
2. The second commit updates to Kong 0.9.0 and sorts out the changes
3. The third commit updates from Kong 0.9.0 → 1.9.0 safely

- [x] (Ideally I'd merge https://github.com/alecthomas/kong/pull/507 and
then bump this to the next version)

fixes #444

v0.44.2

09 Mar 23:17
53d49e2
Compare
Choose a tag to compare
fix: --prompt always overrode value from config (#445)

v0.44.1

06 Mar 05:42
cc90510
Compare
Choose a tag to compare
fix: Revert "perf(exec): improve performance" (#442)

## 📝 Description
In a nested environment, Hermit fails to set the correct environment for
the target binary. For example, given the following directory structure:
```
repo-root/
├── bin/
│   ├── java@17
│   ├── gradle
├── foo/
│   ├── bin/
│   │   ├── java@21
```
When navigating to `repo-root/foo` and running `gradle`, Hermit installs
Java 17 but sets `JAVA_HOME` to Java 21, resulting in the following
error:
```
JAVA_HOME is set to an invalid directory: /root/.cache/hermit/pkg/openjdk@21
```
This issue leads to unexpected failures in internal builds.

## Revert Reason
This commit reverts cashapp/hermit#433 because it introduces a
regression in environment resolution. Until a proper fix is found,
reverting ensures stability for existing builds.

v0.44.0

11 Feb 02:17
b42c6fd
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.43.0...v0.44.0

v0.43.0

22 Jan 03:26
Compare
Choose a tag to compare

Full Changelog: v0.42.1...v0.43.0

v0.42.1

06 Jan 22:06
4be3f3a
Compare
Choose a tag to compare
chore: add trailing newline to activate-hermit.fish (#429)

Because there are uses of `hermit init` in CI that then run opinionated
precommit hooks on them 🤦