summary refs log tree commit diff
diff options
context:
space:
mode:
authorZhu Zihao <all_but_last@163.com>2020-12-18 10:27:39 +0800
committerEfraim Flashner <efraim@flashner.co.il>2020-12-31 14:42:15 +0200
commit5f6216d55153e62d680e42a544bc0a029d7f3500 (patch)
treeab47bae17b5e1c8caacbfb21acfa34e7551cdb0b
parentfb533563f08663e8807f039858cdc385094d2fcb (diff)
downloadguix-5f6216d55153e62d680e42a544bc0a029d7f3500.tar.gz
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>
-rw-r--r--guix/build/cargo-build-system.scm6
1 files changed, 1 insertions, 5 deletions
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index c7beffc6e4..1d21b33895 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -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