aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2020-01-02 23:41:48 +0000
committeredef <edef@edef.eu>2020-01-02 23:56:06 +0000
commitc65a6fa86aef7bdf51fb4fba7bd31d265619ba3f (patch)
treea095f632f59882d5dd8d3dc877340f31c8d2d342 /src
parent515c0a263e137a00e82f7d981284dbe54db23247 (diff)
passAsFile: leave out the hash prefix
Having a colon in the path may cause issues, and having the hash function indicated isn't actually necessary. We now verify the path format in the tests to prevent regressions.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 9ee3b04e3..78f39fed1 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2460,7 +2460,7 @@ void DerivationGoal::initTmpDir() {
env[i.first] = i.second;
} else {
auto hash = hashString(htSHA256, i.first);
- string fn = ".attr-" + hash.to_string();
+ string fn = ".attr-" + hash.to_string(Base32, false);
Path p = tmpDir + "/" + fn;
writeFile(p, i.second);
chownToBuilder(p);