cmds.secrets.lib.FilesContext: Write the compile output unfiltered #173
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/fix/20261109-cmds-secrets-lib-filescontext-write-the-compile-output-unfiltered"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cmds.secrets.lib.FilesContext: Write the compile output unfiltered
The path filter of the exec context filtered the compile's own file operations:
put()andrename()silently no-op on a filtered path,stat()raises, and the compile swallows that into a false<missing>verdict. A compile-templates run with a path filter therefore reported@contentfor every template while installing nothing, and left the empty temp files behind.The filter scopes the distro's package selection, not the command's own output. Write the compiled file and its temp unfiltered: put, stat, the read of the previous output, rename, and unlink. The reads of the template and of the attribute files keep the filter.
Add a unit test with a context whose package space holds only the template: the output must be written and no temp must leak.