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

Alternate installation method #20

Closed
spenserblack opened this issue May 26, 2021 · 4 comments
Closed

Alternate installation method #20

spenserblack opened this issue May 26, 2021 · 4 comments

Comments

@spenserblack
Copy link

If you clone this repo and run cargo install --path path/to/rpg-cli, then the binary will be installed to ~/.cargo/bin, and you can skip the step of moving the binary from path/to/rpg-cli/target to somewhere defined in $PATH.

You can also use cargo install --git <URL> to avoid manually cloning this repo.

@facundoolano
Copy link
Owner

Thanks, I'll incorporate this to the README.

@MattesWhite
Copy link

For me cargo looked by default for the branch master so the correct command was

> cargo install --git https://github.com/facundoolano/rpg-cli --branch main

@spenserblack
Copy link
Author

Thanks @MattesWhite, I didn't realize that --git defaulted to master.

@MattesWhite
Copy link

I wondered why cargo did not already search for a main branch if master is not available. Turns out this was issued a number of times already. Following the discussion and PRs this should be solved within the next view releases of Rust.

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

No branches or pull requests

3 participants