Skip to content

Commit

Permalink
fix: fix a bug where bazel run @jq//:jq cannot be run on M1
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Feb 3, 2023
1 parent 95d4b69 commit 0d772fe
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/private/jq_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ JQ_PLATFORMS = {
release_platform = "osx-amd64",
compatible_with = [
"@platforms//os:macos",
# JQ only ships a universal binary; it should work on
# Apple Silicon (amd64) as well.
#"@platforms//cpu:x86_64",
"@platforms//cpu:x86_64",
],
),
"darwin_arm64": struct(
# JQ only ships a universal binary; it should work on
# Apple Silicon (amd64) as well.
release_platform = "osx-amd64",
compatible_with = [
"@platforms//os:macos",
"@platforms//cpu:aarch64",
],
),
"linux_amd64": struct(
Expand Down

0 comments on commit 0d772fe

Please sign in to comment.