Skip to content

Commit

Permalink
Add a jq version for arm64
Browse files Browse the repository at this point in the history
All other versions are kept at the minimum supported version.
  • Loading branch information
fmeum committed Jun 11, 2024
1 parent dc62a5f commit 4053029
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ http_file(
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-osx-amd64"],
)

http_file(
name = "jq_macos_arm64",
executable = True,
integrity = "sha256-C75hnmY+DeLFUL4v4NJA0HZ5nW+KZStw+gSuqKg2Loo=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-arm64"],
)

http_file(
name = "jq_windows_amd64",
executable = True,
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel.lock

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

10 changes: 9 additions & 1 deletion scripts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,19 @@ sh_test(
],
)

filegroup(
name = "jq_macos",
srcs = select({
"@platforms//cpu:arm64": ["@jq_macos_arm64//file"],
"@platforms//cpu:x86_64": ["@jq_macos_amd64//file"],
}),
)

filegroup(
name = "jq",
srcs = select({
"@platforms//os:linux": ["@jq_linux_amd64//file"],
"@platforms//os:macos": ["@jq_macos_amd64//file"],
"@platforms//os:macos": [":jq_macos"],
"@platforms//os:windows": ["@jq_windows_amd64//file"],
}),
)
Expand Down

0 comments on commit 4053029

Please sign in to comment.