Skip to content

Commit

Permalink
feat: Add arm64/aarch64 support to fd package
Browse files Browse the repository at this point in the history
The `fd` releases have amd64 and arm64 binaries (using the xarch
architecture tag). Change the hardcoded `x86_64` to `${xarch}` so we can
get appropriate binaries on arm64.

The following are the related assets in the lastest v10.2.0 release:

    fd-v10.2.0-aarch64-apple-darwin.tar.gz
    fd-v10.2.0-aarch64-unknown-linux-musl.tar.gz
    fd-v10.2.0-x86_64-apple-darwin.tar.gz
    fd-v10.2.0-x86_64-unknown-linux-musl.tar.gz
  • Loading branch information
camh- committed Feb 8, 2025
1 parent aff042f commit d5b4a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fd.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ strip = 1
test = "fd --version"

platform "linux" {
source = "https://github.com/sharkdp/fd/releases/download/v${version}/fd-v${version}-x86_64-unknown-linux-musl.tar.gz"
source = "https://github.com/sharkdp/fd/releases/download/v${version}/fd-v${version}-${xarch}-unknown-linux-musl.tar.gz"
}

platform "darwin" {
source = "https://github.com/sharkdp/fd/releases/download/v${version}/fd-v${version}-x86_64-apple-darwin.tar.gz"
source = "https://github.com/sharkdp/fd/releases/download/v${version}/fd-v${version}-${xarch}-apple-darwin.tar.gz"
}

version "8.3.2" "8.6.0" "8.7.0" "8.7.1" "9.0.0" "10.0.0" "10.1.0" "10.2.0" {
Expand Down

0 comments on commit d5b4a36

Please sign in to comment.