Default for recently added base path, ""
, disables detection of symlinked *.jar
files
#1962
Labels
bug
Something isn't working
What happened:
When using
syft packages
against a temp directory with symlinks to*.jar
files syft 0.85 in Linux does not find any package unless option--base-path /
is used.I suggest to change the default base path from
""
to"/"
(for unix type systems), but @kzantow suggests "We probably need a broader discussion to change the behavior", see #1867 (comment)What you expected to happen:
I expected
syft
to find all packages represented by those symlinked*.jar
files.Steps to reproduce the issue:
/tmp/foobar
*.jar
files there ("good"jar
files, that syft usually can detect the maven coordinates and license of)syft packages /tmp/foobar -o cyclonedx-json --file syft-bom.cdx.json
.cdx.json
file has no packages--base-path /
and you get a.cdx.json
with the Maven package(s) listedAnything else we need to know?:
Environment:
syft version
:cat /etc/os-release
or similar):Remark: We automatically download the latest
syft_*_linux_amd64.deb
(only if it has changed,wget -N
) daily and distribute it internally via an internal-ish deb repository for 3rd party software.The text was updated successfully, but these errors were encountered: