Skip to content

Commit

Permalink
Add linux/ppc64le to GOARCH constraints (#3975)
Browse files Browse the repository at this point in the history
* Add linux/ppc64le to GOARCH constraints

This also updates `platforms` module dependency to 0.0.10

Signed-off-by: Chaitanya Munukutla <[email protected]>

* Support older versions of Bazel

Signed-off-by: Chaitanya Munukutla <[email protected]>

---------

Signed-off-by: Chaitanya Munukutla <[email protected]>
  • Loading branch information
c16a committed Jul 1, 2024
1 parent 93f29a5 commit 77e04cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module(
# conflicting with the real bazel_features repo.
bazel_dep(name = "bazel_features", version = "1.9.1", repo_name = "io_bazel_rules_go_bazel_features")
bazel_dep(name = "bazel_skylib", version = "1.2.0")
bazel_dep(name = "platforms", version = "0.0.4")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf")

Expand Down
2 changes: 1 addition & 1 deletion go/private/platforms.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BAZEL_GOARCH_CONSTRAINTS = {
"arm": "@platforms//cpu:armv7",
"arm64": "@platforms//cpu:aarch64",
"ppc64": "@platforms//cpu:ppc",
"ppc64le": "@platforms//cpu:ppc",
"ppc64le": "@platforms//cpu:ppc64le",
"s390x": "@platforms//cpu:s390x",
}

Expand Down
10 changes: 10 additions & 0 deletions go/private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ def go_rules_dependencies(force = False):
patch_args = ["-p1"],
)

wrapper(
http_archive,
name = "platforms",
sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz",
],
)

# releaser:upgrade-dep golang mock
_maybe(
http_archive,
Expand Down

0 comments on commit 77e04cc

Please sign in to comment.