Merge pull request #3329 from mayflower/attrs-chown
structured-attrs: chown .attrs.* files to builder
This commit is contained in:
commit
2242be83c6
|
@ -2579,6 +2579,7 @@ void DerivationGoal::writeStructuredAttrs()
|
|||
}
|
||||
|
||||
writeFile(tmpDir + "/.attrs.json", rewriteStrings(json.dump(), inputRewrites));
|
||||
chownToBuilder(tmpDir + "/.attrs.json");
|
||||
|
||||
/* As a convenience to bash scripts, write a shell file that
|
||||
maps all attributes that are representable in bash -
|
||||
|
@ -2647,6 +2648,7 @@ void DerivationGoal::writeStructuredAttrs()
|
|||
}
|
||||
|
||||
writeFile(tmpDir + "/.attrs.sh", rewriteStrings(jsonSh, inputRewrites));
|
||||
chownToBuilder(tmpDir + "/.attrs.sh");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue