mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
fix: correctly trim conanfile line breaks (#3672)
Signed-off-by: idhyt <idhyt3r@gmail.com>
This commit is contained in:
parent
59b84f3ffd
commit
52bd4acd23
@ -39,7 +39,7 @@ func parseConanfile(_ context.Context, _ file.Resolver, _ *generic.Environment,
|
||||
}
|
||||
|
||||
m := pkg.ConanfileEntry{
|
||||
Ref: strings.Trim(line, "\n"),
|
||||
Ref: strings.TrimSpace(line),
|
||||
}
|
||||
|
||||
if !inRequirements {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user