Search for (and set) the path for dnf-json by checking a few known locations: - ./dnf-json: for situations when the tool is ran from the source tree. This is checked first to prioritise local changes. - /usr/libexec/osbuild-composer/dnf-json: the default install location of the script when osbuild-composer is installed. - /usr/lib/osbuild-composer/dnf-json: the default install location of the script for distributions which don't use /usr/libexec. The function panics with an informative error message when it fails to find dnf-json. |
||
|---|---|---|
| .. | ||
| main.go | ||