Skip to content
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 install failure #52

Closed
uncomfyhalomacro opened this issue Jul 28, 2023 · 1 comment · Fixed by #63
Closed

cargo install failure #52

uncomfyhalomacro opened this issue Jul 28, 2023 · 1 comment · Fixed by #63

Comments

@uncomfyhalomacro
Copy link

Running cargo install mdbook-catppuccin or cargo install --git https://github.com/catppuccin/mdBook will result to an error E0432

Output from running the command with just

   Compiling hyper v0.14.27
   Compiling warp v0.3.5
   Compiling mdbook v0.4.32
   Compiling mdbook-catppuccin v0.2.0
error[E0432]: unresolved import `clap::crate_version`
 --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdbook-catppuccin-0.2.0/src/bin/mdbook-catppuccin.rs:3:12
  |
3 | use clap::{crate_version, Arg, ArgMatches, Command};
  |            ^^^^^^^^^^^^^ no `crate_version` in the root

error: cannot determine resolution for the macro `crate_version`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mdbook-catppuccin-0.2.0/src/bin/mdbook-catppuccin.rs:29:18
   |
29 |         .version(crate_version!())
   |                  ^^^^^^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

For more information about this error, try `rustc --explain E0432`.
error: could not compile `mdbook-catppuccin` (bin "mdbook-catppuccin") due to 2 previous errors
error: failed to compile `mdbook-catppuccin v0.2.0`, intermediate artifacts can be found at `/tmp/cargo-installj2MPyu`
error: Recipe `get-deps-book` failed on line 38 with exit code 101
@sgoudham
Copy link
Contributor

Hey 👋
Pretty odd error! Thanks for raising this.

I've pushed dde0c18 which should have fixed this, I've tested it out by running cargo install --git https://github.com/catppuccin/mdBook and I'll make a release/publish to cargo soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants