-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo vendor
misses some files
#14034
Comments
cargo vendor
misses somr filescargo vendor
misses some files
As a quick sanity check kramdown-syntax_tree_sitter is locked to docs.rs shows that [email protected] does include that folder |
I just tried to reproduce this with |
ack, I tried cargo 1.76 and 1.77. Let me try 1.78 |
@epage Still fails for me. Here's my new
|
This is still failing for me on Cargo 1.79:
|
The problem is that There are a few issues here:
|
Oh, I remember now. It was #12509 (comment). Unfortunately based on that comment, it sounds like it might not be easy. |
Problem
I'm trying to build this Cargo project with vendored deps. I'm able to build it normally (
cargo build
), and runningcargo vendor
exits without an error, but building using the vendored deps fails (cargo build
after modifying.cargo/config.toml
).It's pretty clear why it fails to build —
cargo vendor
hasn't copied thesrc/generate/templates
directory of thetree-sitter-cli
dependency, so I see a bunch of errors due toinclude_str!
trying to include nonexistent files.I'm not a Cargo expert, so I might be missing something, but I didn't see any reason why vendoring the dependencies would
miss this subfolder. Hopefully you can point me in the right direction if there's something obvious I missed.
Steps
git clone https://github.com/andrewtbiehl/kramdown-syntax_tree_sitter
cd kramdown-syntax_tree_sitter/ext/tree_sitter_adapter
RUBY=/path/to/bin/ruby cargo build
(observe that this succeeds)cargo vendor
(observe that this appears to succeed).cargo/config.toml
as directed by the output ofcargo vendor
cargo build
(observe that this fails)vendor/tree-sitter-cli/src/generate/templates
, although it does exist in the upstream repoPossible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: