William Murphy
4adb56d2fe
fix order of rust dependencies and support git sources in Cargo.lock dependencies ( #3502 )
...
* fix: un-reverse Cargo.lock dependencies
Previously, dependencyOf was pointing the wrong way. Use dependency
specification helpers to build the dependency graph.
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
* feat: parse Cargo.lock git dependency relationships
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
---------
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-12-06 13:38:36 +00:00
William Murphy
25e5d555ef
chore: add and document target for updating unit snapshots ( #3498 )
...
* chore: add and document target for updating unit snapshots
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
* chore: rename to reflect narrower scope
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
---------
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-12-04 20:21:07 +00:00
William Murphy
e65fe243bf
fix: bump clio to pull in logging fix ( #3466 )
...
Previously, if SYFT_LOG_FILE was not set, and no TTY was present,
log.Warn messages were discarded instead of being sent to stderr.
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-11-19 14:56:53 -05:00
William Murphy
bc35345afb
feat: emit dependency relationships found in Cargo.lock ( #3443 )
...
* feat: emit dependency relationships found in Cargo.lock
Include updating test Cargo.lock to have dependencies on multiple
versions of the same crate.
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-11-14 16:45:00 -05:00
William Murphy
754cebee64
fix: stop some log.Warn spam due parsing an empty string as a CPE ( #3330 )
...
* chore: don't try to parse empty string as CPE
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
* chore: improve OS name and version extraction from ELF metadata
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
---------
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-10-15 08:50:47 -04:00
William Murphy
0c71bf23c5
docs: clearer deprecation message for --file ( #3310 )
...
It's not clear to users that they shoudl use --output FORMAT=PATH
instead of --file. Directly suggest the FORMAT=PATH syntax.
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-10-10 13:11:45 -04:00
William Murphy
0d457142cc
chore: add pull request template ( #3294 )
...
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com >
2024-10-05 09:05:11 -04:00
William Murphy and Christopher Phillips
770fdc53ea
Fix: make failed CPE validation correctly return error ( #2762 )
...
* Test CPE attributes correctly returns error
Previously, this method incorrectly return an empty Attributes object
and a nil error, leading to callers attempting to use the empty
attributes object.
Signed-off-by: Will Murphy <will.murphy@anchore.com >
* chore: merge with main and refactor call that relied on old nil behavior
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com >
* test: add test to cover new OSCPE err pattern
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com >
---------
Signed-off-by: Will Murphy <will.murphy@anchore.com >
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com >
Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com >
2024-10-03 16:42:57 -04:00