Open da1nerd opened 4 years ago
at first glance we could just return slice.size
, however, it's not always writing everything in the slice.
Also, I'm not sure what going on here https://github.com/schovi/baked_file_system/blob/master/src/loader/string_encoder.cr#L37
this to_s
method is deprecated https://github.com/schovi/baked_file_system/blob/master/src/loader/string_encoder.cr#L39.
This is writing the string to the IO as an uppercase. we'll need to count that as well.
I think there is some gzip stuff that needs to be updated as well.
There's already a PR open for this https://github.com/schovi/baked_file_system/pull/36
The core feature that caused this break is being reverted. See https://github.com/crystal-lang/crystal/pull/9469
The nightly builds are failing because
IO.write
now returns the number of bytes written. The writer at https://github.com/schovi/baked_file_system/blob/master/src/loader/string_encoder.cr#L20 is not returning the number of bytes.