Commit fe6453c
authored
Fix + for semver meta (#3277)
- Currently if a repo is pulled with metadata on the semver, there is a
mismatch between whats in the `rules_rust/crates_index.BUILD` file and
whats generated when you query `bazel query @crates_index//:*`. The
build file will have
```
alias(
name = "serde_yaml",
actual = "@crates_index__serde_yaml-0.9.34-deprecated//:serde_yaml,
tags = ["manual"],
)
```
but the crates_index will have `serde_yaml-0.9.34+deprecated`
### current error
```
ERROR: /Users/<user>/Programming/some_project/a_dir/BUILD:6:13: no such target '@@rules_rust~~crate~crates_index//:some_crate-1.3.338-build-250213-01-release': target 'some_crate-1.3.338-build-250213-01-release' not declared in package '' defined by /private/var/tmp/_bazel_<user>/79b277eea1629c6c0e66b29d7b082943/external/rules_rust~~crate~crates_index/BUILD.bazel (did you mean some_crate-1.3.338+build-250213-01-release?) and referenced by '/some_project
```
- Added a `serde_yaml` dependency that has the semver metadata on it.1 parent fc86188 commit fe6453c
File tree
5 files changed
+757
-69
lines changed- crate_universe/src/rendering
- examples/crate_universe/cargo_aliases
5 files changed
+757
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments