Skip to content

Make platform blocks explicit for opa and yajsv#748

Open
Renjuju wants to merge 1 commit intocashapp:masterfrom
Renjuju:renju/add-arm64-opa-yajsv
Open

Make platform blocks explicit for opa and yajsv#748
Renjuju wants to merge 1 commit intocashapp:masterfrom
Renjuju:renju/add-arm64-opa-yajsv

Conversation

@Renjuju
Copy link
Copy Markdown
Contributor

@Renjuju Renjuju commented Apr 20, 2026

Summary

  • opa.hcl: Change linux {} and darwin {} to platform "linux" "amd64" {} and platform "darwin" "amd64" {} in the v0.30.1 block so hermit doesn't try to install amd64 binaries on arm64 machines. Newer versions (0.38.1+) already use ${arch} and support arm64 natively.
  • yajsv.hcl: Replace top-level source (which matched all platforms including arm64) with explicit platform "linux" "amd64" {} block since no linux-arm64 binary exists. Darwin keeps the arch-unqualified block (works via Rosetta on arm64 macs).

Same pattern as #747 (codecov).

opa.hcl: Change `linux {}` and `darwin {}` to `platform "linux" "amd64" {}`
and `platform "darwin" "amd64" {}` in the v0.30.1 block so hermit doesn't
try to install amd64 binaries on arm64 machines. Newer versions already
use `${arch}` and support arm64 natively.

yajsv.hcl: Replace top-level source (which matched all platforms
including arm64) with explicit `platform "linux" "amd64" {}` block since
no linux-arm64 binary exists. Darwin keeps the arch-unqualified block
(works via Rosetta on arm64 macs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Co-authored-by: Eric Tam <erict@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant