bootc-image-builder icon indicating copy to clipboard operation
bootc-image-builder copied to clipboard

bib: fix injecting default "build" arg into root for flags like --local

Open mvo5 opened this issue 1 year ago • 0 comments

[draft as this needs tests]

In PR#608 we dropped the container entrypoint and moved the logic to detect what command to run into the cobra parsing.

However it seems certain situations like:

bootc-image-builder  --type qcow2 --tls-verify=true  --local quay.io/centos-bootc/centos-bootc:stream10

are not detected correctly (thanka to Chunfu Wen for reporting!).

This commit detect this usage and injects the build arg then too.

Closes https://github.com/osbuild/bootc-image-builder/issues/614

mvo5 avatar Aug 21 '24 06:08 mvo5