mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-15 05:20:20 -06:00
rust language: use the new cargo install command
cargo install now requires an additional `--path <TARGET>` argument.
This commit is contained in:
@@ -73,7 +73,7 @@ def install_environment(prefix, version, additional_dependencies):
|
||||
_add_dependencies(prefix.path('Cargo.toml'), lib_deps)
|
||||
|
||||
with clean_path_on_failure(directory):
|
||||
packages_to_install = {()}
|
||||
packages_to_install = {('--path', '.')}
|
||||
for cli_dep in cli_deps:
|
||||
cli_dep = cli_dep[len('cli:'):]
|
||||
package, _, version = cli_dep.partition(':')
|
||||
|
||||
Reference in New Issue
Block a user