Skip to content

"syft config" output swaps comments for search-indexed-archives / search-unindexed-archives #3624

@e4711s

Description

@e4711s

What happened:
syft config prints the following section:

package:
# 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: SYFT_PACKAGE_SEARCH_UNINDEXED_ARCHIVES)
search-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: SYFT_PACKAGE_SEARCH_INDEXED_ARCHIVES)
search-indexed-archives: true

What you expected to happen:

the following section instead:

package:
# 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: SYFT_PACKAGE_SEARCH_INDEXED_ARCHIVES)
search-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: SYFT_PACKAGE_SEARCH_UNINDEXED_ARCHIVES)
search-indexed-archives: true

Steps to reproduce the issue:

run syft config

Anything else we need to know?:
see also anchore/grype#2409

Environment:

  • Output of syft version:
    Application: syft
    Version: 1.19.0
    BuildDate: 2025-01-22T19:57:08Z
    GitCommit: 222e654
    GitDescription: v1.19.0
    Platform: linux/amd64
    GoVersion: go1.23.4
    Compiler: gc
  • OS (e.g: cat /etc/os-release or similar):
    Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions