From 7d84eaf01421a5341efbedd31a3299b1103e51a1 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Tue, 13 Jan 2026 14:50:14 -0600 Subject: [PATCH] registry: add aqua backend for smithy Smithy releases changed from .tar.gz (< 1.48.0) to .zip (>= 1.48.0) format with different internal directory structures. The aqua-registry entry handles both formats using version_overrides. Co-Authored-By: Claude Opus 4.5 --- .../pkgs/smithy-lang/smithy/registry.yaml | 38 +++++++++++++++++++ registry.toml | 27 +------------ 2 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 crates/aqua-registry/aqua-registry/pkgs/smithy-lang/smithy/registry.yaml diff --git a/crates/aqua-registry/aqua-registry/pkgs/smithy-lang/smithy/registry.yaml b/crates/aqua-registry/aqua-registry/pkgs/smithy-lang/smithy/registry.yaml new file mode 100644 index 0000000000..9e5772eea7 --- /dev/null +++ b/crates/aqua-registry/aqua-registry/pkgs/smithy-lang/smithy/registry.yaml @@ -0,0 +1,38 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/registry.json +packages: + - type: github_release + repo_owner: smithy-lang + repo_name: smithy + description: Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language + version_constraint: "false" + version_overrides: + - version_constraint: semver("<= 1.47.0") + asset: smithy-cli-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + windows_arm_emulation: true + replacements: + amd64: x86_64 + arm64: aarch64 + checksum: + type: github_release + asset: "{{.Asset}}.sha256" + algorithm: sha256 + overrides: + - goos: windows + replacements: + amd64: x64 + - version_constraint: "true" + asset: smithy-cli-{{.OS}}-{{.Arch}}.{{.Format}} + format: zip + windows_arm_emulation: true + replacements: + amd64: x86_64 + arm64: aarch64 + checksum: + type: github_release + asset: "{{.Asset}}.sha256" + algorithm: sha256 + overrides: + - goos: windows + replacements: + amd64: x64 diff --git a/registry.toml b/registry.toml index c50dabb41e..bffd66fbe5 100644 --- a/registry.toml +++ b/registry.toml @@ -4136,35 +4136,10 @@ description = "Verify provenance from SLSA compliant builders" test = ["slsa-verifier version", "{{version}}"] [tools.smithy] +backends = ["aqua:smithy-lang/smithy", "asdf:mise-plugins/mise-smithy"] description = "Smithy is a language for defining services and SDKs" test = ["smithy --version", "{{version}}"] -[[tools.smithy.backends]] -full = "github:smithy-lang/smithy" - -[tools.smithy.backends.options.platforms.macos-arm64] -asset_pattern = "smithy-cli-darwin-aarch64.zip" -bin_path = "smithy-cli-darwin-aarch64/bin" - -[tools.smithy.backends.options.platforms.macos-x64] -asset_pattern = "smithy-cli-darwin-x86_64.zip" -bin_path = "smithy-cli-darwin-x86_64/bin" - -[tools.smithy.backends.options.platforms.linux-arm64] -asset_pattern = "smithy-cli-linux-aarch64.zip" -bin_path = "smithy-cli-linux-aarch64/bin" - -[tools.smithy.backends.options.platforms.linux-x64] -asset_pattern = "smithy-cli-linux-x86_64.zip" -bin_path = "smithy-cli-linux-x86_64/bin" - -[tools.smithy.backends.options.platforms.windows-x64] -asset_pattern = "smithy-cli-windows-x64.zip" -bin_path = "smithy-cli-windows-x64/bin" - -[[tools.smithy.backends]] -full = "asdf:mise-plugins/mise-smithy" - [tools.smlnj] backends = ["asdf:mise-plugins/mise-smlnj"] description = "Standard ML of New Jersey (abbreviated SML/NJ) is a compiler for the Standard ML '97 programming language with associated libraries, tools, and documentation"