Skip to content

Commit

Permalink
Fix uv.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
kanterov committed Jan 17, 2025
1 parent 9bfe806 commit a7a0120
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
12 changes: 10 additions & 2 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,13 @@ func CopyDir(src, dst string, inputs, outputs map[string]bool) error {

func ListDir(t *testing.T, src string) ([]string, error) {
// exclude folders in .gitignore from comparison
ignoredFolders := []string{
ignored := []string{
"\\.ruff_cache",
"\\.venv",
".*\\.egg-info",
"__pycache__",
// depends on uv version
"uv.lock",
}

var files []string
Expand All @@ -409,13 +411,19 @@ func ListDir(t *testing.T, src string) ([]string, error) {
}

if info.IsDir() {
for _, ignoredFolder := range ignoredFolders {
for _, ignoredFolder := range ignored {
if matched, _ := regexp.MatchString(ignoredFolder, info.Name()); matched {
return filepath.SkipDir
}
}

return nil
} else {
for _, ignoredFolder := range ignored {
if matched, _ := regexp.MatchString(ignoredFolder, info.Name()); matched {
return nil
}
}
}

relPath, err := filepath.Rel(src, path)
Expand Down

This file was deleted.

0 comments on commit a7a0120

Please sign in to comment.