Merge pull request #3329 from mayflower/attrs-chown

structured-attrs: chown .attrs.* files to builder
This commit is contained in:
Eelco Dolstra 2020-01-23 18:24:44 +01:00 committed by GitHub
commit 2242be83c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2579,6 +2579,7 @@ void DerivationGoal::writeStructuredAttrs()
} }
writeFile(tmpDir + "/.attrs.json", rewriteStrings(json.dump(), inputRewrites)); writeFile(tmpDir + "/.attrs.json", rewriteStrings(json.dump(), inputRewrites));
chownToBuilder(tmpDir + "/.attrs.json");
/* As a convenience to bash scripts, write a shell file that /* As a convenience to bash scripts, write a shell file that
maps all attributes that are representable in bash - maps all attributes that are representable in bash -
@ -2647,6 +2648,7 @@ void DerivationGoal::writeStructuredAttrs()
} }
writeFile(tmpDir + "/.attrs.sh", rewriteStrings(jsonSh, inputRewrites)); writeFile(tmpDir + "/.attrs.sh", rewriteStrings(jsonSh, inputRewrites));
chownToBuilder(tmpDir + "/.attrs.sh");
} }