Skip to content

Commit

Permalink
fix mod dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava committed Aug 16, 2024
1 parent 31b39e4 commit 16400cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lint/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func detectGoMod(dir string) (rootDir string, ver *goversion.Version, err error)
}

ver, err = goversion.NewVersion(modAst.Go.Version)
return dir, ver, err
return path.Dir(modFileName), ver, err
}

func retrieveModFile(dir string) (string, error) {
Expand Down

0 comments on commit 16400cd

Please sign in to comment.