avif-cli icon indicating copy to clipboard operation
avif-cli copied to clipboard

Absolute inputs no longer working in 0.5.3

Open gauntface opened this issue 1 year ago • 1 comments

First off - thank you for this CLI, it's been really helpful for a long time.

I noticed that in 0.5.3 the CLI just hangs. I can drop to v0.5.2 and that will work correctly.

The only change between those versions is tnyglobby. I checked out the project to see if I can make sense of it and it looks like the way I've been running the tool is not longer supported by tinyglobby.

avif --input /tmp/abc/example.png --output /home/me/project/example --overwrite

Tinyglobby will freeze on input with an absolute path. I can get around it if we pass in a cwd to the glob options and change the flags:

avif --cwd /tmp/abc/ --input example.png --output /home/me/project/example --overwrite

PR: https://github.com/lovell/avif-cli/pull/20

I'm not sure if this is a desirable direction tbh, but thought I'd mention it in case others encounter the issue.

gauntface avatar Dec 13 '24 04:12 gauntface

I can also reproduce this, and there's some relevant discussion at https://github.com/SuperchupuDev/tinyglobby/issues/51

Your idea to expose the working directory seems sensible - I'll take a look at your PR now.

lovell avatar Dec 13 '24 14:12 lovell