syft icon indicating copy to clipboard operation
syft copied to clipboard

When running syft with command line args for verbosity the command fails if the configuration is set

Open spiffcs opened this issue 2 years ago • 0 comments

What happened: When running syft -vv alpine:latest an error will occur if the configuration file is also set for verbosity.

What you expected to happen: No error for syft to occur with command line flags and config set.

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

run syft -vv alpine:latest with a configuration file also configured with log settings

log:
  # use structured logging
  # same as SYFT_LOG_STRUCTURED env var
  structured: false

  # the log level; note: detailed logging suppress the ETUI
  # same as SYFT_LOG_LEVEL env var
  level: "error"

  # location to write the log file (default is not to have a log file)
  # same as SYFT_LOG_FILE env var
  file: ""

Anything else we need to know?: Community Meeting origin 8/4

Environment:

  • Output of syft version: v0.53.4
  • OS (e.g: cat /etc/os-release or similar):
  • OSX

spiffcs avatar Aug 04 '22 16:08 spiffcs