tern-tools / tern

Tern is a software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles. The SBOM that Tern generates will give you a layer-by-layer view of what's inside your container in a variety of formats including human-readable, JSON, HTML, SPDX and more.
BSD 2-Clause "Simplified" License
960 stars 188 forks source link

Regression: packages not found for photon image (rpm-based collection) #1156

Closed rnjudge closed 2 years ago

rnjudge commented 2 years ago

Describe the bug Running at the tip of main, Tern no longer finds packages for photon-based images. The issue is a regression based on this commit: https://github.com/tern-tools/tern/commit/c88d542d823d66ed0162dbf7e81ebf70640d73b3

If you revert this commit, Tern finds packages for photon.

rnjudge commented 2 years ago

The issue is not with the commit itself, but rather with the way Tern selects which binary to use in the get_base_bin() function. A fix is on the way.