Skip to content

Commit

Permalink
unhide fingerprint in scan command and remove unpacking of compressed…
Browse files Browse the repository at this point in the history
… files (#191)
  • Loading branch information
emilwareus authored Feb 5, 2024
1 parent 7412e8c commit 43a3b7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/cmd/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ $ debricked scan . `+exampleFlags)
cmd.Flags().BoolVar(&noResolve, NoResolveFlag, false, `disables resolution of manifest files that lack lock files. Resolving manifest files enables more accurate dependency scanning since the whole dependency tree will be analysed.
For example, if there is a "go.mod" in the target path, its dependencies are going to get resolved onto a lock file, and latter scanned.`)
cmd.Flags().BoolVar(&noFingerprint, FingerprintFlag, false, "enables fingerprinting for undeclared component identification. Can be run as a standalone command [files fingerprint] with more granular options. Will be default in an upcoming major release.")
cmd.Flags().MarkHidden(FingerprintFlag) //nolint:errcheck
cmd.Flags().BoolVar(&callgraph, CallGraphFlag, false, `Enables call graph generation during scan.`)
cmd.Flags().IntVar(&callgraphUploadTimeout, CallGraphUploadTimeoutFlag, 10*60, "Set a timeout (in seconds) on call graph upload.")
cmd.Flags().IntVar(&callgraphGenerateTimeout, CallGraphGenerateTimeoutFlag, 60*60, "Set a timeout (in seconds) on call graph generation.")
Expand Down
2 changes: 1 addition & 1 deletion internal/scan/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (dScanner *DebrickedScanner) scanResolve(options DebrickedOptions) error {

func (dScanner *DebrickedScanner) scanFingerprint(options DebrickedOptions) error {
if options.Fingerprint {
fingerprints, err := dScanner.fingerprint.FingerprintFiles(options.Path, file.DefaultExclusionsFingerprint(), true)
fingerprints, err := dScanner.fingerprint.FingerprintFiles(options.Path, file.DefaultExclusionsFingerprint(), false)
if err != nil {
return err
}
Expand Down

0 comments on commit 43a3b7b

Please sign in to comment.