]> git.proxmox.com Git - cargo.git/commit
Auto merge of #4216 - durka:install-multi, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 28 Jul 2017 16:07:08 +0000 (16:07 +0000)
committerbors <bors@rust-lang.org>
Fri, 28 Jul 2017 16:07:08 +0000 (16:07 +0000)
commit3751e6897020a08cbc1b082f4c7157ce66adecab
tree25b41b0562e1aec076568860e4e40e30e7f72b32
parent76148e94ce26d80cd99d4635e1a287c903ee85ff
parentce2d69d2057a8aa10025c6be89c57f05fb5c4265
Auto merge of #4216 - durka:install-multi, r=alexcrichton

cargo install multiple crates

rust-lang-nursery/rustup.rs#986 for `cargo install`

Revives #2601 @pwoolcoc, replaces #3075 @esclear, closes #2585 @kindlychung @cyplo

Avoids the sticking point of the previous two PRs (multiple registry updates) by threading through a first-run boolean flag to decide whether `select_pkg` needs to call `source.update()`.

There is still the issue that flags such as `--git` and `--vers` are "global" to the multiple packages you may be installing. The workaround is just to run `cargo install` separately. In the future we could add syntax like `cargo install foo=1.0 bar=2.5 quux=git://github.com/durka/quux#dev-branch` or something.
src/cargo/ops/cargo_install.rs