Skip to content

Commit

Permalink
fix: Correctly set directory modules are passed in from the command l…
Browse files Browse the repository at this point in the history
…ine (#383)
  • Loading branch information
elldritch committed Dec 4, 2018
1 parent 9509164 commit d1c781d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions analyzers/cocoapods/cocoapods.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ func New(m module.Module) (*Analyzer, error) {
}
log.WithField("options", options).Debug("parsed analyzer options")

// Edge case: `Dir` is not set when passing module configurations from the command line.
// TODO: we really need to refactor the Module struct.
if m.Dir == "" {
m.Dir = m.BuildTarget
}

analyzer := Analyzer{
PodCmd: podCmd,
PodVersion: podVersion,
Expand Down

0 comments on commit d1c781d

Please sign in to comment.