[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: build-system: cargo: Make Cargo.toml writeable.
From: |
David Craven |
Subject: |
01/03: build-system: cargo: Make Cargo.toml writeable. |
Date: |
Sun, 1 Jan 2017 17:22:00 +0000 (UTC) |
dvc pushed a commit to branch master
in repository guix.
commit dc77498c1c6e3aaef9aae1cac189e6d9db470952
Author: David Craven <address@hidden>
Date: Sun Jan 1 16:11:55 2017 +0100
build-system: cargo: Make Cargo.toml writeable.
* guix/build/cargo-build-system.scm (configure): Make sure Cargo.toml
is writeable before attempting modification.
Problem reported by Danny Milosavljevic <address@hidden>.
---
guix/build/cargo-build-system.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 460d829..4fa29b4 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -43,6 +43,8 @@
(define* (configure #:key inputs #:allow-other-keys)
"Replace Cargo.toml [dependencies] section with guix inputs."
+ ;; Make sure Cargo.toml is writeable when the crate uses git-fetch.
+ (chmod "Cargo.toml" #o644)
(let ((port (open-file "Cargo.toml" "a" #:encoding "utf-8")))
(format port "~%[replace]~%")
(for-each