Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are broken on BSD because /dev/fd/{N} aren't supported there #2016

Open
yurivict opened this issue Apr 18, 2024 · 2 comments
Open

Tests are broken on BSD because /dev/fd/{N} aren't supported there #2016

yurivict opened this issue Apr 18, 2024 · 2 comments
Labels

Comments

@yurivict
Copy link

Describe the bug
File descriptors aren't mapped under /dev/fd on BSDs.

Therefore, tests fail with messages like this:

yq: error: argument files: can't open '/dev/fd/3': [Errno 2] No such file or directory: '/dev/fd/3'

Version of yq: 3.4.1
Operating system: FreeBSD 14.0
Installed via: port

Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:

this: should really work

data2.yml:

but: it strangely didn't

Command
The command you ran:

yq merge data1.yml data2.yml

Actual behavior

cat: meow

Expected behavior

this: should really work
but: it strangely didn't

Additional context
Add any other context about the problem here.

@mikefarah
Copy link
Owner

Not sure what would need to be done to fix this - though assuming it's just a development problem, you could run the build in docker, the current Makefile supports this.

@yurivict
Copy link
Author

No, Docker has nothing to do with this problem, and Docker also doesn't work on FreeBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants