Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Add example for installing a cargo subcommand. #11

Closed
dvc94ch opened this issue Jan 2, 2020 · 2 comments
Closed

Add example for installing a cargo subcommand. #11

dvc94ch opened this issue Jan 2, 2020 · 2 comments

Comments

@dvc94ch
Copy link

dvc94ch commented Jan 2, 2020

There seems to be some support for caching the subcommand, and just running cargo install manually doesn't install it to a location that is on the PATH.

@svartalf
Copy link
Member

svartalf commented Jan 2, 2020

Hi, @dvc94ch! Can you elaborate more on this issue?

~/.cargo/bin should be added into the PATH during the actions-rs/toolchain execution, so as long as you are using it, any cargo install-ed binary will be available in your PATH.

Yet, proper caching of the installed binary is not implemented yet, see actions-rs/meta#21

EDIT: here is a wild example of cargo install cargo-nono and the following call of it: https://github.com/svartalf/rust-macaddr/runs/371402468

@dvc94ch
Copy link
Author

dvc94ch commented Jan 2, 2020

Looks like I made a mistake. It seems that it was missing a tool that the cargo subcommand needed.

@dvc94ch dvc94ch closed this as completed Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants