Repository navigation
Allow exclusion or selective inclusion of input files - #115
Draft
mschwan-phytec wants to merge 6 commits into
Draft
mschwan-phytec wants to merge 6 commits into
mschwan-phytec wants to merge 6 commits into
Conversation
mschwan-phytec
force-pushed
the
wip-input-options
branch
from
September 10, 2026 13:57
f0d1d4a to
d0b92db
Compare
Allow restricting the paths of an input with the new input options "exclude" and "only". For tar archives, the paths are passed to tar during extraction. For all other inputs, the paths are removed from the partition after writing. Relative paths are resolved against the root of the partition and may contain wildcards. "exclude" takes precedence over "only". Also shell-quote all arguments passed to tar. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Test extracting archives and removing paths from a directory with exclude and only lists, including wildcards, relative paths and paths outside of the root directory. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Add tests for parsing a layout config with the input options exclude and only, and for a config with an invalid exclude entry. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Describe the input options exclude and only, how their paths are interpreted for tar archives and for other inputs, and add an example. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Add a layout using the input options exclude and only to the system tests and add the directory structure archive to the test packages. Signed-off-by: Martin Schwan <m.schwan@phytec.de>
mschwan-phytec
force-pushed
the
wip-input-options
branch
from
October 20, 2026 12:23
d0b92db to
f8e265c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow restricting the paths of an input with the new input options
"exclude" and "only". For tar archives, the paths are passed to tar
during extraction. For all other inputs, the paths are removed from the
partition after writing. Relative paths are resolved against the root of
the partition and may contain wildcards. "exclude" takes precedence over
"only".