Skip to content

Commit

Permalink
Tests: Fix fail on vendored modules
Browse files Browse the repository at this point in the history
This fixes looking for LICENSE files in the vendor directory
  • Loading branch information
gbjk committed Oct 30, 2024
1 parent fbaf66a commit 804892b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/testing/utils/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func TestRootPathFromCWD(t *testing.T) {
w, _ := filepath.Split(p)
w = filepath.Clean(w)
if w == r {
if d.Name() == "vendor" {
return filepath.SkipDir
}
return nil
}
if d.Type().IsRegular() && d.Name() == "LICENSE" {
Expand Down

0 comments on commit 804892b

Please sign in to comment.