bug: can't specify any file in a directory
I have a folder http with some .http files.
When I run:
> httpyac ./http/reproduction.http --all --output=response
httpYac cannot find the specified file ./http/reproduction.http.
but this works:
> cd http
> httpyac reproduction.http --all --output=response
# ok
this is my file (rename to .http):
huh, super weird. it seems like that's not it, somehow in a repository it keeps saying it can't find the file even though it's there, but it works in a subfolder
The same for me on Ubuntu; super weird
I use globby to find the file. I always use some kind of *.http for execution. Maybe I need to check the path, and only use globby if it not exists
https://github.com/AnWeber/httpyac/blob/main/src/cli/send/send.ts#L179-L181
Globby omits files that match .gitignore, perhaps that's the case for you as well? We've had a case where httpyac would miss (some) tests if executed from a repo root, but not from a subdir - turns out globby ignores .gitignore entries, but only checks .gitignore from the current directory.
Globby omits files that match
.gitignore, perhaps that's the case for you as well? We've had a case where httpyac would miss (some) tests if executed from a repo root, but not from a subdir - turns out globby ignores.gitignoreentries, but only checks.gitignorefrom the current directory.
oh yeah that might be it, I do have it gitignore'd in the repo root