Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rust module extension for Bazel pre-7.1 #2612

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

cameron-martin
Copy link
Contributor

@cameron-martin cameron-martin commented Apr 11, 2024

The reproducible attribute was added in Bazel 7.1, so unconditional usage of this breaks earlier versions. This uses @bazel_features to detect whether we can safely use this. For more context see #2453 (comment).

The reproducible attribute was added in Bazel 7.1, so unconditional usage of this breaks earlier versions. This uses `@bazel_features` to detect whether we can safely use this.
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@UebelAndre UebelAndre added this pull request to the merge queue Apr 11, 2024
Merged via the queue into bazelbuild:main with commit a58d952 Apr 11, 2024
3 checks passed
illicitonion added a commit to illicitonion/rules_rust that referenced this pull request Apr 11, 2024
@cameron-martin cameron-martin deleted the fix-for-bazel-6 branch April 11, 2024 13:11
@cameron-martin cameron-martin mentioned this pull request Apr 15, 2024
rrbutani referenced this pull request in bazel-contrib/toolchains_llvm Apr 15, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rules_rust](https://togithub.com/bazelbuild/rules_rust) |
http_archive | patch | `0.42.0` -> `0.42.1` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_rust (rules_rust)</summary>

###
[`v0.42.1`](https://togithub.com/bazelbuild/rules_rust/releases/tag/0.42.1)

[Compare
Source](https://togithub.com/bazelbuild/rules_rust/compare/0.42.0...0.42.1)

### 0.42.1

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_rust",
    integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=",
    urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz"],
)
```

Additional documentation can be found at:
https://bazelbuild.github.io/rules_rust/#setup

#### What's Changed

- Fix rust module extension for Bazel pre-7.1 by
[@&#8203;cameron-martin](https://togithub.com/cameron-martin) in
[https://github.com/bazelbuild/rules_rust/pull/2612](https://togithub.com/bazelbuild/rules_rust/pull/2612)
- Test BCR example in minimum bazel by
[@&#8203;illicitonion](https://togithub.com/illicitonion) in
[https://github.com/bazelbuild/rules_rust/pull/2613](https://togithub.com/bazelbuild/rules_rust/pull/2613)
- Release 0.42.1 by
[@&#8203;UebelAndre](https://togithub.com/UebelAndre) in
[https://github.com/bazelbuild/rules_rust/pull/2614](https://togithub.com/bazelbuild/rules_rust/pull/2614)

**Full Changelog**:
bazelbuild/rules_rust@0.42.0...0.42.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bazel-contrib/toolchains_llvm).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants