Skip to content

Commit

Permalink
fix: allow tar archives too in local datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
ex3ndr committed Jun 7, 2024
1 parent 2330e87 commit b61a033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/resolver/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func resolveFileDataset(path string) (*InternalResolved, error) {
}

// Check if file is a tar.gz archive
if !strings.HasSuffix(strings.ToLower(path), ".tar.gz") {
return nil, errors.New("file is not a tar.gz archive: " + path)
if !strings.HasSuffix(strings.ToLower(path), ".tar.gz") && !strings.HasSuffix(strings.ToLower(path), ".tar") {
return nil, errors.New("file is not a tar or tar.gz archive: " + path)
}

// Get file name from path and without extension
Expand Down

0 comments on commit b61a033

Please sign in to comment.