mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
when no distros are matched, return an UnkownDistro
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
parent
f51cae2043
commit
e2b71184aa
@ -61,7 +61,8 @@ func Identify(s scope.Scope) *Distro {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: is it useful to know partially detected distros? where the ID is known but not the version (and viceversa?)
|
// TODO: is it useful to know partially detected distros? where the ID is known but not the version (and viceversa?)
|
||||||
return nil
|
distro := NewUnknownDistro()
|
||||||
|
return &distro
|
||||||
}
|
}
|
||||||
|
|
||||||
func assembleDistro(name, version string) *Distro {
|
func assembleDistro(name, version string) *Distro {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user