mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
rust language: use the new cargo install command
cargo install now requires an additional `--path <TARGET>` argument.
This commit is contained in:
parent
07f66417dd
commit
cbbfcd20b4
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ def install_environment(prefix, version, additional_dependencies):
|
||||||
_add_dependencies(prefix.path('Cargo.toml'), lib_deps)
|
_add_dependencies(prefix.path('Cargo.toml'), lib_deps)
|
||||||
|
|
||||||
with clean_path_on_failure(directory):
|
with clean_path_on_failure(directory):
|
||||||
packages_to_install = {()}
|
packages_to_install = {('--path', '.')}
|
||||||
for cli_dep in cli_deps:
|
for cli_dep in cli_deps:
|
||||||
cli_dep = cli_dep[len('cli:'):]
|
cli_dep = cli_dep[len('cli:'):]
|
||||||
package, _, version = cli_dep.partition(':')
|
package, _, version = cli_dep.partition(':')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue