fix placeholder not substituted in passAsFile

(cherry picked from commit 12556e570924315eb25ad6057b6c2c5162955e4f)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
mlatus 2020-03-31 19:40:16 +08:00 committed by Eelco Dolstra
parent eba0892d08
commit 2007b4a89b

View file

@ -2464,7 +2464,7 @@ void DerivationGoal::initTmpDir() {
} else {
string fn = ".attr-" + std::to_string(fileNr++);
Path p = tmpDir + "/" + fn;
writeFile(p, i.second);
writeFile(p, rewriteStrings(i.second, inputRewrites));
chownToBuilder(p);
env[i.first + "Path"] = tmpDirInSandbox + "/" + fn;
}