Skip to content

Commit

Permalink
refactor(imsnif/bandwhich): simplify version_overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 10, 2025
1 parent ace2c3e commit 29df908
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 56 deletions.
39 changes: 11 additions & 28 deletions pkgs/imsnif/bandwhich/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ packages:
description: Terminal bandwidth utilization tool
version_constraint: "false"
version_overrides:
- version_constraint: Version == "v0.22.0"
asset: bandwhich-{{.Version}}-{{.Arch}}-{{.OS}}.{{.Format}}
format: tar.gz
rosetta2: true
replacements:
amd64: x86_64
darwin: apple-darwin
linux: unknown-linux-musl
supported_envs:
- linux/amd64
- darwin
- version_constraint: semver("<= 0.3.2")
asset: what
format: raw
Expand All @@ -29,34 +40,6 @@ packages:
linux: unknown-linux-musl
supported_envs:
- linux/amd64
- version_constraint: semver("<= 0.21.1")
asset: bandwhich-{{.Version}}-{{.Arch}}-{{.OS}}.{{.Format}}
format: tar.gz
rosetta2: true
windows_arm_emulation: true
replacements:
amd64: x86_64
darwin: apple-darwin
linux: unknown-linux-musl
windows: pc-windows-msvc
overrides:
- goos: windows
format: zip
supported_envs:
- darwin
- windows
- amd64
- version_constraint: Version == "v0.22.0"
asset: bandwhich-{{.Version}}-{{.Arch}}-{{.OS}}.{{.Format}}
format: tar.gz
rosetta2: true
replacements:
amd64: x86_64
darwin: apple-darwin
linux: unknown-linux-musl
supported_envs:
- linux/amd64
- darwin
- version_constraint: semver("<= 0.22.2")
asset: bandwhich-{{.Version}}-{{.Arch}}-{{.OS}}.{{.Format}}
format: tar.gz
Expand Down
39 changes: 11 additions & 28 deletions registry.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29df908

Please sign in to comment.