You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using all_crate_deps() it generates a dependency on @@crate_index//:serde_yaml-0.9.34-deprecated -- which is incorrect -- it should be +deprectated, not -deprecated -- this ofc causes a build failure:
ERROR: /private/var/tmp/_bazel_bjz/ab6676c7943b575710f215479703ac0a/external/crate_index/BUILD.bazel: no such target '@@crate_index//:serde_yaml-0.9.34-deprecated': target 'serde_yaml-0.9.34-deprecated' not declared in package '' defined by /private/var/tmp/_bazel_bjz/ab6676c7943b575710f215479703ac0a/external/crate_index/BUILD.bazel (did you mean serde_yaml-0.9.34+deprecated?)
We have worked-around this by pinning the version to 0.9.33, given that 0.9.34+deprecated was a patch bump purely to update the docs and mark it as deprecated.
The text was updated successfully, but these errors were encountered:
Also worth noting that as I was trying older versions of rules_rust - I didn't see this issue. As mentioned in other issues I tried all versions from 0.49-0.54 and 0.57 (I can't try 0.55 or 0.56 due to #3166 that was fixed in 0.57)
Our repo depends on
serde_yaml
whose current version isv0.9.34+deprecated
.Under
rules_rust
0.57.0 this generates two aliases in thecrate_index
(viacrates_repository
):When using
all_crate_deps()
it generates a dependency on@@crate_index//:serde_yaml-0.9.34-deprecated
-- which is incorrect -- it should be+deprectated
, not-deprecated
-- this ofc causes a build failure:If I manually add an alias to our repo like
Then this causes the build to pass correctly.
We have worked-around this by pinning the version to
0.9.33
, given that0.9.34+deprecated
was a patch bump purely to update the docs and mark it as deprecated.The text was updated successfully, but these errors were encountered: