cashapp / hermit-packages

Hermit manages isolated, self-bootstrapping sets of tools in software projects.
https://cashapp.github.io/hermit
120 stars 124 forks source link

Support darwin-arm64 binaries for yq #482

Closed kanwren closed 6 months ago

kanwren commented 6 months ago

yq has released arm64 binaries since 4.9.6. Update yq's darwin configuration to support this.

alecthomas commented 6 months ago

Because the arm64 version was only just introduced you'll need to explicitly separate the old versions and the new versions. It's basically something like:

// old versions
version "4.9.2" {
  platform darwin { source = "...old url" }
  // ... more stuff, remove auto-version
}

// new version with new source
version "4.9.6" {
  platform darwin { source = "...new url" }
  auto-version {
    // ...
  }
}
alecthomas commented 6 months ago

Awesome thanks, and thanks for backfilling the versions.

kanwren commented 6 months ago

It actually wasn't just introduced, it's been available since every version after 4.9.5, the earliest that's recorded here! I had overridden the unpacking incorrectly though; should be fixed!

alecthomas commented 6 months ago

I'm going to merge this as-is, the tests are taking forever.