Merge pull request #3463 from Ninlives/placeholder-passAsFile

fix placeholder not substituted in passAsFile
This commit is contained in:
Eelco Dolstra 2020-03-31 13:50:39 +02:00 committed by GitHub
commit d4d456c6b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2465,7 +2465,7 @@ void DerivationGoal::initTmpDir() {
auto hash = hashString(htSHA256, i.first);
string fn = ".attr-" + hash.to_string(Base32, false);
Path p = tmpDir + "/" + fn;
writeFile(p, i.second);
writeFile(p, rewriteStrings(i.second, inputRewrites));
chownToBuilder(p);
env[i.first + "Path"] = tmpDirInSandbox + "/" + fn;
}