Skip to content

Commit

Permalink
During source only analsis, we should not also set the scope.
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <[email protected]>
  • Loading branch information
shawn-hurley committed Jul 1, 2024
1 parent 8e3a166 commit 195b627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (r *Analyzer) options(output string) (options command.Options, err error) {
if err != nil {
return
}
err = r.Scope.AddOptions(&options)
err = r.Scope.AddOptions(&options, r.Mode)
if err != nil {
return
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type Scope struct {
}

// AddOptions adds analyzer options.
func (r *Scope) AddOptions(options *command.Options) (err error) {
if !r.WithKnownLibs {
func (r *Scope) AddOptions(options *command.Options, mode Mode) (err error) {
if !r.WithKnownLibs && mode.WithDeps {
options.Add(
"--dep-label-selector",
"!konveyor.io/dep-source=open-source")
Expand Down

0 comments on commit 195b627

Please sign in to comment.