Make --skip-deps and --skip-chained-deps work as described in the docs #5026
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.
The documentation says that
--skip-deps
and--skip-chained-deps
only affects parent jobs. But in the code both flags were applied unconditionally to all dependencies, no matter if--clone-children
was present as well.With this patch applied you can use
--skip-deps --clone-children
to clone a job with its children, but without parents.The documentation was added 7 years ago, together with the dependency cloning feature, which at the time only allowed parents to be cloned. 4 years later another feature was introduced that allows for child jobs to be cloned as well. Here it appears the old documentation was missed, and has been incorrect since then.
Clone dependencies: 39cbc40
Clone children: 7cb28ed
Progress: https://progress.opensuse.org/issues/124493