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

Bazel can't find external repositories used by raze #465

Open
tp-woven opened this issue Jan 14, 2022 · 0 comments
Open

Bazel can't find external repositories used by raze #465

tp-woven opened this issue Jan 14, 2022 · 0 comments

Comments

@tp-woven
Copy link

Hi all,

I am trying to set up a simple Rust build for a small project. I tried following the instructions in the README, but no matter what I do, Bazel doesn't seem to like it.

When installing cargo-raze and running it "manually":
When I try to run any Bazel command, it complains that it can't find @bazel_skylib. I tried adding it to my WORKSPACE manually, and helps it get a little further along, but then when I try to add a dependency to any of my targets, attempting to build that target results in Bazel complaining it can't find its repository (i.e. @raze__whatever_0_1_2). This error happens both when using aliases and when using (the experimental) all_crate_deps().

When attempting to run cargo-raze through Bazel:
Trying to bazel run @cargo_raze//:raze it complains about @bazel_skylib again. Adding that to my WORKSPACE manually causes it to complaining about @rules_foreign_cc (similar to issue #423).

I also tried to build some examples from the examples folder, but:

  • When running cargo-raze in any of the example folders, it doesn't appear to do anything, and no new files are created.
  • Attempting to build an example fails with error: error: linking with external/local_config_cc/cc_wrapper.sh failed: exit code: 1

(As a side note, it is a little unclear to me how the examples work - they contain some things like cargo folders and various .bzl and BUILD/BUILD.bazel files, and it is not clear which of those are supposed to be authored by the "user" and which should be generated by cargo-raze.)

Platform: macOS Monterey (Intel)
Bazel version: 4.2.1
"Installed" cargo-raze version: 0.12.0
"Bazel" cargo-raze version: 0.12.0, 0.14.1

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

No branches or pull requests

1 participant