Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cataloger dpkg-db-cataloger not working #2323

Closed
noqcks opened this issue Nov 14, 2023 · 2 comments
Closed

cataloger dpkg-db-cataloger not working #2323

noqcks opened this issue Nov 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@noqcks
Copy link
Contributor

noqcks commented Nov 14, 2023

What happened:

The README specifies that dpkg-db-cataloger is a valid cataloger. I can also see this in the codebase

func NewDBCataloger() *generic.Cataloger {
	return generic.NewCataloger("dpkg-db-cataloger").

But when I go to set it in my catalog list, it fails

.syft.yaml

catalogers:
  - dpkg-db-cataloger

I get nothing

$ syft ubuntu -q | grep deb

but when I set the cataloger list like this

.syft.yaml

catalogers:
  - dpkgdb-cataloger

it works

$ syft ubuntu -q | grep deb
adduser              3.118ubuntu5                             deb
apt                  2.4.10                                   deb
base-files           12ubuntu4.4                              deb
base-passwd          3.5.52build1                             deb

Why? The simple fix is to update the docs, but im perplexed why this is happening.

Environment:

  • Output of syft version:
Application: syft
Version:    0.94.0
BuildDate:  2023-10-20T17:21:07Z
GitCommit:  8f6bdde6662aa8050a71eadbdb7bd5a3b079a56d
GitDescription: v0.94.0
Platform:   darwin/arm64
GoVersion:  go1.21.3
Compiler:   gc
  • OS (e.g: cat /etc/os-release or similar): macos
@noqcks noqcks added the bug Something isn't working label Nov 14, 2023
@spiffcs
Copy link
Contributor

spiffcs commented Nov 14, 2023

👋 thanks for the report @noqcks!

I'm having a hard time reproducing this one one my end on main at the latest commit (also tried same flow on v0.95.0):

go run cmd/syft/main.go -vv ubuntu:latest
...
config: /Users/hal/.syft.yaml <-- Debug output shows the correct path
...
cat ~/.syft.yaml <-- here is the config cat
catalogers:
  - dpkg-db-cataloger

Catalogers are skipped

[0001]  INFO identified distro: Ubuntu 22.04.2 LTS
[0001]  INFO skipping cataloger "alpm-db-cataloger"
[0001]  INFO skipping cataloger "apk-db-cataloger"
[0001]  INFO skipping cataloger "binary-cataloger"
[0001]  INFO skipping cataloger "conan-cataloger"
[0001]  INFO skipping cataloger "dart-pubspec-lock-cataloger"
[0001]  INFO skipping cataloger "dotnet-deps-cataloger"
[0001]  INFO skipping cataloger "dotnet-portable-executable-cataloger"
[0001]  INFO skipping cataloger "elixir-mix-lock-cataloger"
[0001]  INFO skipping cataloger "erlang-rebar-lock-cataloger"
[0001]  INFO skipping cataloger "github-actions-usage-cataloger"
[0001]  INFO skipping cataloger "github-action-workflow-usage-cataloger"
[0001]  INFO skipping cataloger "go-module-file-cataloger"
[0001]  INFO skipping cataloger "go-module-binary-cataloger"
[0001]  INFO skipping cataloger "haskell-cataloger"
[0001]  INFO skipping cataloger "java-archive-cataloger"
[0001]  INFO skipping cataloger "java-gradle-lockfile-cataloger"
[0001]  INFO skipping cataloger "java-pom-cataloger"
[0001]  INFO skipping cataloger "graalvm-native-image-cataloger"
[0001]  INFO skipping cataloger "javascript-lock-cataloger"
[0001]  INFO skipping cataloger "javascript-package-cataloger"
[0001]  INFO skipping cataloger "linux-kernel-cataloger"
[0001]  INFO skipping cataloger "nix-store-cataloger"
[0001]  INFO skipping cataloger "php-composer-installed-cataloger"
[0001]  INFO skipping cataloger "php-composer-lock-cataloger"
[0001]  INFO skipping cataloger "portage-cataloger"
[0001]  INFO skipping cataloger "python-package-cataloger"
[0001]  INFO skipping cataloger "python-installed-package-cataloger"
[0001]  INFO skipping cataloger "r-package-cataloger"
[0001]  INFO skipping cataloger "rpm-archive-cataloger"
[0001]  INFO skipping cataloger "rpm-db-cataloger"
[0001]  INFO skipping cataloger "ruby-gemfile-cataloger"
[0001]  INFO skipping cataloger "ruby-gemspec-cataloger"
[0001]  INFO skipping cataloger "ruby-installed-gemspec-cataloger"
[0001]  INFO skipping cataloger "cargo-auditable-binary-cataloger"
[0001]  INFO skipping cataloger "rust-cargo-lock-cataloger"
[0001]  INFO skipping cataloger "sbom-cataloger"
[0001]  INFO skipping cataloger "cocoapods-cataloger"
[0001]  INFO skipping cataloger "swift-package-manager-cataloger"

I see the results
Screenshot 2023-11-14 at 9 41 05 AM

Anyone else have more information on reproducing this?

@noqcks
Copy link
Contributor Author

noqcks commented Nov 14, 2023

This was a user error. I figured it out. I had another config file somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants