Skip to content

Add riscv64 into BAZEL_GOARCH_CONSTRAINTS#4507

Merged
fmeum merged 1 commit intobazel-contrib:masterfrom
ffgan:master
Nov 7, 2025
Merged

Add riscv64 into BAZEL_GOARCH_CONSTRAINTS#4507
fmeum merged 1 commit intobazel-contrib:masterfrom
ffgan:master

Conversation

@ffgan
Copy link
Copy Markdown
Contributor

@ffgan ffgan commented Nov 7, 2025

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Fix some Bazel matching issues on riscv64

Which issues(s) does this PR fix?

Fixes #4053

Other notes for review

The riscv64 architecture has been widely developed and adopted recently, and optimizing support for riscv64 is very meaningful as it can provide better riscv64 support for downstream users.

For example, when I was using bazeldnf, due to some limitations in the current repository, I couldn't use bazeldnf directly. The specific reason is this: https://github.com/rmohr/bazeldnf/blob/main/bazeldnf/platforms.bzl. This depends on the current repository's BAZEL_GOARCH_CONSTRAINTS, which currently lacks riscv64 support, so the riscv64 version of bazeldnf cannot be used directly. If this PR is merged and released, downstream users will be able to get good riscv64 support.

A PR quite similar to this one is #3336. I think the situation with riscv64 is quite similar to that case. The Go upstream also provides good support for riscv64.

Other Info
Co-authored by: nijincheng@iscas.ac.cn;

Co-authored by: nijincheng@iscas.ac.cn;
@fmeum fmeum enabled auto-merge (squash) November 7, 2025 08:45
@fmeum fmeum merged commit 3fe89b8 into bazel-contrib:master Nov 7, 2025
1 check passed
ffgan added a commit to ffgan/rules_go that referenced this pull request Jan 8, 2026
<!-- Thanks for sending a PR! Before submitting:

1. If this is your first PR, please read CONTRIBUTING.md and sign the
CLA
   first. We cannot review code without a signed CLA.
2. Please file an issue *first*. All features and most bug fixes should
have
an associated issue with a design discussed and decided upon. Small bug
   fixes and documentation improvements don't need issues.
3. New features and bug fixes must have tests. Documentation may need to
be updated. If you're unsure what to update, send the PR, and we'll
discuss
   in review.
4. Note that PRs updating dependencies and new Go versions are not
accepted.
   Please file an issue instead.
-->

**What type of PR is this?**

Bug fix

**What does this PR do? Why is it needed?**

Fix some Bazel matching issues on riscv64

**Which issues(s) does this PR fix?**

Fixes bazel-contrib#4053

**Other notes for review**

The riscv64 architecture has been widely developed and adopted recently,
and optimizing support for riscv64 is very meaningful as it can provide
better riscv64 support for downstream users.

For example, when I was using `bazeldnf`, due to some limitations in the
current repository, I couldn't use `bazeldnf` directly. The specific
reason is this:
https://github.com/rmohr/bazeldnf/blob/main/bazeldnf/platforms.bzl. This
depends on the current repository's `BAZEL_GOARCH_CONSTRAINTS`, which
currently lacks riscv64 support, so the riscv64 version of bazeldnf
cannot be used directly. If this PR is merged and released, downstream
users will be able to get good riscv64 support.

A PR quite similar to this one is
bazel-contrib#3336. I think the
situation with riscv64 is quite similar to that case. The Go upstream
also provides good support for riscv64.


**Other Info**
Co-authored by: nijincheng@iscas.ac.cn;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No matching toolchains found for types @io_bazel_rules_go//go:toolchain

2 participants