Skip to content

Commit

Permalink
Be more clear which path to give
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed May 7, 2020
1 parent a034a11 commit c3ed8c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
}
flagSet.BoolVarP(&c.versionFlag, "version", "v", false, "print the current version")
flagSet.BoolVar(&c.debugFlag, "debug", false, "run in debug mode")
flagSet.StringVarP(&c.executable, "executable", "e", "", "path to golangci-lint executable")
flagSet.StringVarP(&c.executable, "executable", "e", "", "absolute path to the golangci-lint executable")
flagSet.Usage = usage
if err := flagSet.Parse(os.Args[1:]); err != nil {
if err != flag.ErrHelp {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Config struct {
BuildSource string
OpenCommandEnv string

// Path to a golangci-lint executable.
// Absolute path to a golangci-lint executable.
Executable string
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/golangcilint/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
const globOperator = "/..."

type Runner struct {
// Path to a golangci-lint executable.
// Absolute path to the golangci-lint executable.
Executable string
// Args given to `golangci-lint run`.
// An arg can be a file name, a workingDir, and in addition,
Expand Down

0 comments on commit c3ed8c4

Please sign in to comment.