Closed frenzymadness closed 1 year ago
Lumir, thanks for the PR.
I agree with using exit code 2. I also see exit code 95 as possible one (Operation not supported).
Weird, what's up with CI?
Ok, the worflow was disabled for inactivity. Perhaps #131 helps, dunno. Would you mind rebasing the PR to trigger the test builds?
Rebased, CI is running.
LGTM
@zmiklank OK to merge?
@zmiklank OK to merge?
Sure :).
I will create a new release, so we can start to use this functionality. Thanks Lumir.
We need that for example for container images where we run distgen for all combinations of distros/versions and some of those combinations might not be allowed or present in multispec. In this specific case, we want to silence the output from distgen so the log from the generator is not full of errors.
It's hard to tell which exit code is the best one for this. I think that if you have correct definitions in multispec and you request some invalid or unallowed selectors from distgen, it can be considered as misuse of CLI which usually uses exit code 2. But we can use whatever we want so feel free to voice your preference.
There are some other simple fixes I did during the implementation of the main change.
Related: https://github.com/sclorg/s2i-python-container/issues/594