mikefarah / yq

yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
https://mikefarah.gitbook.io/yq/
MIT License
11.29k stars 565 forks source link

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

Open yurivict opened 2 months ago

yurivict commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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