`:zip.unzip/2` now returns directory name too in Erlang 27.1
natrys opened this issue · 2 comments
The changelog only mentions this about :zip.list_dir/2
, but I am seeing the effect for :zip.unzip/2
too.
So here:
Lines 208 to 212 in 75aa655
Before download_path
was say [~c"/tmp/bun-linux-x64/bun"]
, now its [~c"/tmp/bun-linux-x64/", ~c"/tmp/bun-linux-x64/bun"]
. This is now failing in File.cp!
later (as an aside, it's not because it got wrong type, but apparently for anything that expects chardata but is given something else, elixir attempts implicit conversion which for list means joining everything which produces nonsense path here, this just happened to be not a problem with one element list).
Another arm in the case pattern should fix it in backward compatible way I guess, lmk if you want me to create PR.
I've just released Bun 1.3.2 with support for OTP 27.1