Skip to content

Commit

Permalink
Fix project root finder
Browse files Browse the repository at this point in the history
  • Loading branch information
smoynes committed Oct 23, 2023
1 parent 5a24ab9 commit 7e9d180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ Commands:
func main() {
args := os.Args
dir, err := os.Getwd()

if err != nil {
log.Fatal(err)
}

for {
dir = path.Dir(dir)
file := path.Join(dir, "go.mod")

if _, err := os.Stat(file); err == nil {
Expand Down

0 comments on commit 7e9d180

Please sign in to comment.