diff options
author | edef <edef@edef.eu> | 2020-01-02 23:41:48 +0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2020-01-02 23:56:06 +0000 |
commit | c65a6fa86aef7bdf51fb4fba7bd31d265619ba3f (patch) | |
tree | a095f632f59882d5dd8d3dc877340f31c8d2d342 /src/libstore/build.cc | |
parent | 515c0a263e137a00e82f7d981284dbe54db23247 (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/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
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); |