debian-forge-composer/cmd/osbuild-pipeline
Achilleas Koutsou d09176893b cmd/osbuild-pipeline: find dnf-json binary
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.
2022-06-01 11:36:52 +01:00
..
main.go cmd/osbuild-pipeline: find dnf-json binary 2022-06-01 11:36:52 +01:00