Skip to content

Commit

Permalink
Fix removing vendor directories in estimate
Browse files Browse the repository at this point in the history
Only devendor the repo dir, otherwise it fails with a permission denied error
  • Loading branch information
n-peugnet committed Jan 6, 2025
1 parent f23d0f3 commit ce73302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion estimate.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func estimate(importpath string) error {
return fmt.Errorf("go get: %w", err)
}

found, err := removeVendor(gopath)
found, err := removeVendor(repodir)
if err != nil {
return fmt.Errorf("remove vendor: %w", err)
}
Expand Down

0 comments on commit ce73302

Please sign in to comment.