-
Notifications
You must be signed in to change notification settings - Fork 13
Doesn't work with rust-analyzer #33
Comments
Have you tried the |
I just tried. It still doesn't work, unfortunately. gian@mars ~/Projects/rust-analyzer $ cargo ebuild --manifest-path Cargo.toml
Error: cargo metadata failed to resolve the root package
gian@mars ~/Projects/rust-analyzer $ cargo ebuild
Error: cargo metadata failed to resolve the root package First time I ran the command it hung there for 10 to 15 seconds and then output the error message. In all subsequent retries from there, the program exists immediately but with the same error message. |
Works fine when given the proper path:
There are issues with the generated ebuild since it has git-dependencies but the tool itself is works fine. Heres a copy of the generated ebuild: And here's a copy of one I manually created by inspecting ~/.cargo: |
@brainplot the issue is the top level Cargo.toml is a workspace definition file. That's not something that Ultimately, |
Unfortunately github archive links aren't stable as Gentoo has discovered before. Their hashes change as github internally updates the version of git they use. I don't have a good answer for chalk since it's a git dependency as the cargo.eclass doesn't yet support git dependencies. Once it does then cargo-ebuild can output the appropriate syntax for that. |
Hi, I was looking into writing an ebuild script for
rust-analyzer
and use this tool to list all dependent crates, as per the Gentoo wiki.However, I cloned their repository, ran
cargo ebuild
in the project root but it failed withI tried
cargo ebuild
with a bunch of other popular Rust repos such asripgrep
andbat
; and it worked with all of them. There must be something with how therust-analyzer
code base is structured thatcargo-ebuild
doesn't like.The text was updated successfully, but these errors were encountered: