Closed stephendolan closed 3 years ago
@igor-alexandrov Just tagging you in case this had fallen off of the radar! Is this something we could look into getting merged, or at least enable the CI workflows for to see if they pass with the latest shard version?
Tried locally, but getting an error:
In src/shrine/storage/s3.cr:57:18
57 | uploader.upload(bucket, object_key(id), io, options)
^-----
Error: instantiating 'Awscr::S3::FileUploader#upload(String, String, IO+, Hash(String, String))'
In lib/awscr-s3/src/awscr-s3/file_uploader.cr:32:13
32 | if io.size < UPLOAD_THRESHOLD
^---
Error: undefined method 'size' for IO::ARGF (compile-time type is IO+)
@stephendolan thanks for this!
Now that it appears as though this dependency supports Crystal 1.0 (https://github.com/taylorfinnell/awscr-s3/pull/94), we should move back off of the master branch so that other libraries using specific versions won't conflict.