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

[Docs] Ubi cargo install instruction incorrect #2695

Closed
drewbitt opened this issue Oct 1, 2024 · 2 comments · Fixed by #2696
Closed

[Docs] Ubi cargo install instruction incorrect #2695

drewbitt opened this issue Oct 1, 2024 · 2 comments · Fixed by #2696
Labels
bug Something isn't working

Comments

@drewbitt
Copy link

drewbitt commented Oct 1, 2024

mise use -g cargo:ubi

❯ mise use -g cargo:ubi
    Updating crates.io index
warning: no Cargo.lock file published in ubi v0.2.0
error: there is nothing to install in `ubi v0.2.0`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency to a Cargo project with `cargo add`.
mise cargo failed
    Updating crates.io index
warning: no Cargo.lock file published in ubi v0.2.0
error: there is nothing to install in `ubi v0.2.0`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency to a Cargo project with `cargo add`.
mise cargo exited with non-zero status: exit code 101
mise Run with --verbose or MISE_VERBOSE=1 for more information

That command is installing the library and not the CLI so will not work.

@drewbitt drewbitt added the bug Something isn't working label Oct 1, 2024
@jdx
Copy link
Owner

jdx commented Oct 1, 2024

this is an issue with ubi, not mise:

❯ cargo binstall ubi
 INFO resolve: Resolving package: 'ubi'
ERROR Fatal error:
  × For crate ubi: no binaries specified nor inferred
  ╰─▶ no binaries specified nor inferred

@drewbitt
Copy link
Author

drewbitt commented Oct 1, 2024

I don't think there is any expectation to be able to install ubi via cargo in this way, so this is an issue in mise's documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants