pico-args icon indicating copy to clipboard operation
pico-args copied to clipboard

musl+gcompat error

Open Conaclos opened this issue 1 year ago • 6 comments

Hi! I tried to use a rust crate that relies on pico-args using Alpine Linux (Musl-based distrib) and gcompat (glibc compatibility layer). I got the following error:

Message: removal index (is 0) should be < len (is 0)

at the following line: https://github.com/RazrFalcon/pico-args/blob/master/src/lib.rs#L127

It could be nice to add a defensive check and then removing the path only if it is present.

Conaclos avatar Apr 05 '23 21:04 Conaclos