commit | 1a053cfbf9a28ef09a5594bf69a9360c8e59bc61 | [log] [tgz] |
---|---|---|
author | Eric McBride <eric.mcbride@toyotaconnected.com> | Fri Apr 05 15:14:34 2024 |
committer | GitHub <noreply@github.com> | Fri Apr 05 15:14:34 2024 |
tree | 2ba7fb44b8c4707725e2bc8c06eaed2b969ff88f | |
parent | 33f2f18a0e0e2393c40cc35b9d0d9e041171b481 [diff] |
Fix (+) In vendored crates semver metadata (#2579) - Resolves https://github.com/bazelbuild/rules_rust/issues/2524 - Revendored examples deps. - Semver Metadata can break vendored dependencies, by cargo vendoring (foo-1.2.3+1.2.3) for example. The bazel labels will look for `foo-1.2.3-1.2.3` which does not work. - Root of the issue is, rules rust uses cargo to vendor the dependencies, which takes the semver + metadata, and generates the file path based off that (hence the + for the dependency in the issue) - Tested by taking that dependency and make sure it loaded using the `vendor_local_manifests` example - Did not include that dependency, because it would introduce a sys dep in CI - Opted to do it within the scope of the vendor cli. When trying to change the version in the `render_build_files` call, it fixes the version in terms of the `outputs` and `files` declared in the vendor cli file, but then we do not have a handle to the generated vendor files from cargo, meaning we cant move the contents over near as easily. I also didn't want to break anything downstream that may rely on that info.
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.