[WIP] v0.7.0 fixes and changes to cache and remotefetcher

This commit is contained in:
Andrew Woodlee 2025-01-28 15:43:57 -06:00
parent 086835453b
commit edc669b340

View File

@ -51,12 +51,9 @@ func (s *S3Fetcher) Fetch(source string) ([]byte, error) {
Key: &key,
})
if err != nil {
if err != nil {
var notFound *types.NoSuchKey
if errors.As(err, &notFound) && s.config.IgnoreFileNotFound {
return nil, ErrFileNotFound
}
return nil, err
var notFound *types.NoSuchKey
if errors.As(err, &notFound) && s.config.IgnoreFileNotFound {
return nil, ErrFileNotFound
}
return nil, err
}