From caf2aa37533c2b97aa69347602dc8a9369ca997f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 31 Oct 2023 22:08:19 +0900 Subject: [PATCH] Support dprint on aarch64 Linux (musl) --- CHANGELOG.md | 2 ++ manifests/dprint.json | 7 +++++-- tools/codegen/base/dprint.json | 1 + tools/codegen/src/main.rs | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 204f691d..79492af4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com - Update `biome@latest` to 1.3.3. +- Support `dprint` on aarch64 Linux (musl). + ## [2.21.5] - 2023-10-30 - Update `cargo-llvm-cov@latest` to 0.5.36. diff --git a/manifests/dprint.json b/manifests/dprint.json index f6140773..afc934e8 100644 --- a/manifests/dprint.json +++ b/manifests/dprint.json @@ -16,6 +16,9 @@ "aarch64_linux_gnu": { "url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-unknown-linux-gnu.zip" }, + "aarch64_linux_musl": { + "url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-unknown-linux-musl.zip" + }, "aarch64_macos": { "url": "https://github.com/dprint/dprint/releases/download/${version}/dprint-aarch64-apple-darwin.zip" } @@ -36,8 +39,8 @@ "x86_64_windows": { "checksum": "6eeb4b17eb7492f8e89cb8334581159686bb793c5e4dff6ecf029aa786f5e88c" }, - "aarch64_linux_gnu": { - "checksum": "5f1d472fd6ed35704cdb3b016490761b47183b0a3b6c70b2a0e453045f1aa8a7" + "aarch64_linux_musl": { + "checksum": "6a99b4ed259c82487993dc17d488f21dd495f6b2fb59d99408734e51ea3c7377" }, "aarch64_macos": { "checksum": "93c995332cb927cebd5b0937fc23939ea5f18b8a24a76e8535486abb9da4a68b" diff --git a/tools/codegen/base/dprint.json b/tools/codegen/base/dprint.json index 43c9c54d..022e793a 100644 --- a/tools/codegen/base/dprint.json +++ b/tools/codegen/base/dprint.json @@ -9,6 +9,7 @@ "x86_64_macos": {}, "x86_64_windows": {}, "aarch64_linux_gnu": {}, + "aarch64_linux_musl": {}, "aarch64_macos": {} } } diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 96920f79..21152357 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -313,6 +313,7 @@ fn main() -> Result<()> { continue; } // compact manifest + // TODO: do this before download binaries if download_info.contains_key(&HostPlatform::x86_64_linux_gnu) && download_info.contains_key(&HostPlatform::x86_64_linux_musl) {