build-system/cargo: Use argument "--no-track" in "cargo install".

* guix/build/cargo-build-system(install):
Add argument "--no-track" in "cargo install".
Remove stale hack.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Zhu Zihao 2020-12-18 10:27:39 +08:00 committed by Efraim Flashner
parent fb533563f0
commit 5f6216d551
Signed by untrusted user: efraim
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 1 additions and 5 deletions

View File

@ -183,13 +183,9 @@ directory = '" port)
;; otherwise cargo will raise an error.
(or skip-build?
(not (has-executable-target?))
(invoke "cargo" "install" "--path" "." "--root" out
(invoke "cargo" "install" "--no-track" "--path" "." "--root" out
"--features" (string-join features)))
;; This is a file which we definitely don't need installed.
(when (file-exists? (string-append out "/.crates.toml"))
(delete-file (string-append out "/.crates.toml")))
#t))
(define %standard-phases