Skip to content

Commit

Permalink
Use build tags while loading the import package list too
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmski committed Aug 14, 2015
1 parent 50b84cf commit aec102a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func parseFlags(checker *errcheck.Checker, args []string) ([]string, int) {
checker.Ignore = ignore

// ImportPaths normalizes paths and expands '...'
return gotool.ImportPaths(flags.Args()), exitCodeOk
return gotool.ImportPaths(flags.Args(), checker.Tags), exitCodeOk
}

func main() {
Expand Down

0 comments on commit aec102a

Please sign in to comment.