You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure package plugin sandbox contents is deterministic (#7876)
Previously, nondeterministic item replacement directory paths could be
included in the sandbox content. This can lead to spurious incremental
rebuilds of plugin outputs.
Because `itemReplacementDirectories` returns a unique temporary
directory on each call, I don't believe including it in the sandbox
profile had the intended effect, so removing it should not break
existing plugins.
// Emit rules for paths under which writing is allowed, even if they are descendants directories that are otherwise read-only.
218
218
if writableDirectories.count >0{
219
219
contents +="(allow file-write*\n"
220
-
// For any explicit writable directories, also include the relevant item replacement directories so that Foundation APIs using atomic writes are not blocked by the sandbox.
// `itemReplacementDirectories` may return a combination of stable directory paths, and subdirectories which are unique on every call. Avoid including unnecessary subdirectories in the Sandbox profile which may lead to nondeterminism in its construction.
0 commit comments