bazelbuild / bazelbuild/rules_rust

External relative path dependencies not working

Open
#3,089 0 comments 0 reactions 0 assignees View on GitHub
needs-design
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

With https://github.com/bazelbuild/rules_rust/pull/3025, we ought to be able to use relative path dependencies.
That's not working for me.
You can check my code out in https://github.com/github/codeql/tree/criemen/rules-rust-upg, and run
`bazel run //misc/bazel/3rdparty:vendor_ruby_deps`.
I'm getting
```
INFO: Running command line: bazel-bin/misc/bazel/3rdparty/vendor_ruby_deps.sh

error: failed to load manifest for workspace member `/tmp/.tmpFAhxxI/extractor`
referenced by workspace at `/tmp/.tmpFAhxxI/Cargo.toml`

Caused by:
failed to load manifest for dependency `codeql-extractor`

Caused by:
failed to read `/tmp/shared/tree-sitter-extractor/Cargo.toml`

Caused by:
No such file or directory (os error 2)

Error: Failed to fetch crates for lockfile: exit status: 101
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.