8000 "grype config" output swaps comments for search-indexed-archives / search-unindexed-archives · Issue #2409 · anchore/grype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"grype config" output swaps comments for search-indexed-archives / search-unindexed-archives #2409

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

Closed
e4711s opened this issue Jan 28, 2025 · 2 comments · Fixed by #2414
Closed
Labels
bug Something isn't working

Comments

@e4711s
Copy link
e4711s commented Jan 28, 2025

What happened:

grype config prints this section:

search:
# selection of layers to analyze, options=[squashed all-layers] (env: GRYPE_SEARCH_SCOPE)
scope: 'squashed'

# search within archives that do contain a file index to search against (zip)
# note: for now this only applies to the java package cataloger (env: GRYPE_SEARCH_UNINDEXED_ARCHIVES)
unindexed-archives: false

# search within archives that do not contain a file index to search against (tar, tar.gz, tar.bz2, etc)
# note: enabling this may result in a performance impact since all discovered compressed tars will be decompressed
# note: for now this only applies to the java package cataloger (env: GRYPE_SEARCH_INDEXED_ARCHIVES)
indexed-archives: true

What you expected to happen:

the following section instead:

search:
# selection of layers to analyze, options=[squashed all-layers] (env: GRYPE_SEARCH_SCOPE)
scope: 'squashed'

# search within archives that do not contain a file index to search against (tar, tar.gz, tar.bz2, etc)
# note: enabling this may result in a performance impact since all discovered compressed tars will be decompressed
# note: for now this only applies to the java package cataloger (env: GRYPE_SEARCH_INDEXED_ARCHIVES)
unindexed-archives: false

# search within archives that do contain a file index to search against (zip)
# note: for now this only applies to the java package cataloger (env: GRYPE_SEARCH_UNINDEXED_ARCHIVES)
indexed-archives: true

How to reproduce it (as minimally and precisely as possible):

run grype config

Anything else we need to know?:
see also anchore/syft#3624

Environment:

  • Output of grype version:
    Application: grype
    Version: 0.87.0
    BuildDate: 2025-01-22T20:51:16Z
    GitCommit: 247f5d7
    GitDescription: v0.87.0
    Platform: linux/amd64
    GoVersion: go1.23.4
    Compiler: gc
    Syft Version: v1.19.0
  • OS (e.g: cat /etc/os-release or similar):
    Ubuntu 24.04
@e4711s e4711s added the bug Something isn't working label Jan 28, 2025
@e4711s e4711s changed the title grypeconfig output swaps comments for search-indexed-archives / search-unindexed-archives grype config output swaps comments for search-indexed-archives / search-unindexed-archives Jan 28, 2025
@e4711s e4711s changed the title grype config output swaps comments for search-indexed-archives / search-unindexed-archives "grype config" output swaps comments for search-indexed-archives / search-unindexed-archives Jan 28, 2025
@spiffcs
Copy link
Contributor
spiffcs commented Jan 29, 2025

Linked:
#2414

@spiffcs spiffcs linked a pull request Jan 29, 2025 that will close this issue
@spiffcs spiffcs moved this to In Progress in OSS Jan 29, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in OSS Jan 29, 2025
@spiffcs
Copy link
Contributor
spiffcs commented Jan 29, 2025

Thanks @e4711s!

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

Successfully merging a pull request may close this issue.

2 participants
0