mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
add first distro support
This commit is contained in:
@@ -55,6 +55,14 @@ func doRunCmd(cmd *cobra.Command, args []string) int {
|
||||
}
|
||||
defer stereoscope.Cleanup()
|
||||
|
||||
log.Info("Identifying Distro")
|
||||
distro, err := imgbom.IdentifyDistro(img)
|
||||
if err != nil {
|
||||
log.Errorf("error identifying Distro: %w", err)
|
||||
} else {
|
||||
log.Info(" Distro: %s", distro)
|
||||
}
|
||||
|
||||
log.Info("Cataloging image")
|
||||
catalog, err := imgbom.CatalogImage(img, appConfig.ScopeOpt)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user