From 2c90f256a829edea7dcd7ecf845bb098fc6dd67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 22 Jan 2025 14:38:56 -0100 Subject: [PATCH] refactor(dprint): use musl build on linux where available (#31223) --- pkgs/dprint/dprint/pkg.yaml | 2 ++ pkgs/dprint/dprint/registry.yaml | 34 ++++++++++++++++++++++---------- registry.yaml | 34 ++++++++++++++++++++++---------- 3 files changed, 50 insertions(+), 20 deletions(-) diff --git a/pkgs/dprint/dprint/pkg.yaml b/pkgs/dprint/dprint/pkg.yaml index c1bf29d9cea..4e38f7dfa23 100644 --- a/pkgs/dprint/dprint/pkg.yaml +++ b/pkgs/dprint/dprint/pkg.yaml @@ -1,2 +1,4 @@ packages: - name: dprint/dprint@0.48.0 + - name: dprint/dprint + version: 0.33.0 diff --git a/pkgs/dprint/dprint/registry.yaml b/pkgs/dprint/dprint/registry.yaml index f1cfa4992a2..6574b2e7bb8 100644 --- a/pkgs/dprint/dprint/registry.yaml +++ b/pkgs/dprint/dprint/registry.yaml @@ -3,14 +3,28 @@ packages: - type: github_release repo_owner: dprint repo_name: dprint - asset: dprint-{{.Arch}}-{{.OS}}.zip description: Pluggable and configurable code formatting platform written in Rust - replacements: - amd64: x86_64 - arm64: aarch64 - darwin: apple-darwin - linux: unknown-linux-gnu - windows: pc-windows-msvc - supported_envs: - - darwin - - amd64 + version_constraint: "false" + version_overrides: + - version_constraint: semver("< 0.34.0") + asset: dprint-{{.Arch}}-{{.OS}}.zip + replacements: + amd64: x86_64 + arm64: aarch64 + darwin: apple-darwin + linux: unknown-linux-gnu + windows: pc-windows-msvc + supported_envs: + - darwin + - amd64 + - version_constraint: "true" + asset: dprint-{{.Arch}}-{{.OS}}.zip + replacements: + amd64: x86_64 + arm64: aarch64 + darwin: apple-darwin + linux: unknown-linux-musl + windows: pc-windows-msvc + supported_envs: + - darwin + - amd64 diff --git a/registry.yaml b/registry.yaml index 6757c9e7ccc..7acab466424 100644 --- a/registry.yaml +++ b/registry.yaml @@ -20000,17 +20000,31 @@ packages: - type: github_release repo_owner: dprint repo_name: dprint - asset: dprint-{{.Arch}}-{{.OS}}.zip description: Pluggable and configurable code formatting platform written in Rust - replacements: - amd64: x86_64 - arm64: aarch64 - darwin: apple-darwin - linux: unknown-linux-gnu - windows: pc-windows-msvc - supported_envs: - - darwin - - amd64 + version_constraint: "false" + version_overrides: + - version_constraint: semver("< 0.34.0") + asset: dprint-{{.Arch}}-{{.OS}}.zip + replacements: + amd64: x86_64 + arm64: aarch64 + darwin: apple-darwin + linux: unknown-linux-gnu + windows: pc-windows-msvc + supported_envs: + - darwin + - amd64 + - version_constraint: "true" + asset: dprint-{{.Arch}}-{{.OS}}.zip + replacements: + amd64: x86_64 + arm64: aarch64 + darwin: apple-darwin + linux: unknown-linux-musl + windows: pc-windows-msvc + supported_envs: + - darwin + - amd64 - type: github_release repo_owner: drlau repo_name: akashi