-
Notifications
You must be signed in to change notification settings - Fork 463
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
build-dependencies are not added to crates_repository
#3194
Comments
I tried all versions up to 0.54 and they worked just fine and did not exhibit this behaviour |
I'm experiencing the same issue |
I downgraded to 0.56.0 again, 0.57.0 and 0.57.1 seem to be broken |
I also tried to migrate to v0.57.0 from v0.54.0 and am seeing the same problem. |
Duplicated by #3227, but since that one has a PR attached, maybe we should close in favor of that one. |
This appears to have been fixed in 0.58.0 |
I'm attempting to update our repo from
rules_rust
0.49 to 0.57 and I'm finding thatbuild-dependencies
aren't emitted in the generatedcrates_repository
-- causing the build to fail.In our repo we use
crates_repository
like so:One of the mainfests is a `Cargo.toml` and `BUILD.bazel` that looks like this:
And in the root `Cargo.toml` we declare the dependencies like so:
It's all pretty straightforward, as far as I understand, at least.
When we repin we get a lockfile which declares all of the dependencies with their correct versions.
For example I can see `napi-build`'s entry is this:
However when we do a build we get an error like:
If I hop into the specified file I can see it has the following `napi-**` aliases:
Note that an alias for
napi-build
is not defined.Note that this isn't only happening for
napi
et al -- it's also happening for a few otherbuild-dependencies
.I've done some playing around and at least I've figured out that if I declare an empty, dummy crate (with an associated
rust_binary
target) in the repo and I list thebuild-dependencies
as normaldependencies
, then this causes the aliases to be output and thus everything works correctly from there.Is this a bug in
rules_rust
? Or have I misconfigured something somewhere?The text was updated successfully, but these errors were encountered: