Skip to content

Problems with cargo-bazel and cargo when using rules_rust crates_universe (bzlmod) #2879

Discussion options

You must be logged in to vote

I managed to solve my problems with two fixes.

Firstly the build failure described in issue #2874 was solved by mapping /etc/passwd from host to container when running the docker container build image, e.g. by adding the following argument to the docker run command:

--volume /etc/passwd:/etc/passwd:ro

Secondly, we are using JFrog Artifactory to host the cargo registry, requiring rules_rust to be configured to use that registry (config.toml) by:

crate.from_specs(
    cargo_config = "//:config.toml",
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sirbeancounter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant