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

Support installing crates using Git URLs #10

Open
3 tasks done
mandrean opened this issue Oct 13, 2020 · 0 comments
Open
3 tasks done

Support installing crates using Git URLs #10

mandrean opened this issue Oct 13, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@mandrean
Copy link

mandrean commented Oct 13, 2020

Do the checklist before filing an issue:

Motivation

As an action-rs/install user, it would be useful to have the ability to also install crates using Git URLs, and not just crates published on crates.io.

Also it would match the actual cargo install command better, since it has the --git/--branch/--tag/--rev flags precisely for this purpose.

One use-case for example is old, unmaintained crates with a new fork that doesn't have its own published crate.

Workflow example

- uses: actions-rs/[email protected]
  with:
    crate: cargo-audit
    version: latest
    git: https://github.com/RustSec/cargo-audit
    use-tool-cache: true
- uses: actions-rs/[email protected]
  with:
    crate: cargo-audit
    version: latest
    git:
      repo: https://github.com/RustSec/cargo-audit
      branch: master
      tag: v0.12.1
      # rev: d3017c3
    use-tool-cache: true
@mandrean mandrean added the enhancement New feature or request label Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant