Closed mahmoud-eltahawy closed 4 months ago
this errors results from cargo install gitu command
cloning this repo and cargo build --release is fine but cargo install --path . errors
@mahmoud-eltahawy this is due to cargo not resolving to the exact version as listed in the Cargo.lock
file without the --locked
flag.
It's explained at the bottom of this article: https://doc.rust-lang.org/cargo/reference/resolver.html.
I noticed it does mention it's possible to temporarily update dependencies in Cargo.toml
before publishing with a =
requirement instead. Might be a good thing :thinking:!
tldr: cargo install --locked gitu
i was too lazy to learn about what does that --locked flag do now i know 😄😄
This unfortunately happens when Cargo upgrades are managed elsewhere, eg when using topgrade
.
I pinned all the tree-sitter dependencies in master: d57c57d (these have been the most problematic).
Now cargo install --path .
works again on master.
tree_sitter::Language
, found a differenttree_sitter::Language
tree_sitter::Language
withtree_sitter::Language
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gitu-0.20.1/src/syntax_highlight.rs:181:24tree_sitter::Language == tree_sitter::Language