is it possible to use yq snap package on an azure build agent? #1706
Closed
GreenBattery
started this conversation in
General
Replies: 1 comment
-
For What it's worth, the snap can't read/write outside the user's Home directory. I had to use yq from a docker container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It appears that the snap package for yq version 4.34.1 on an Ubuntu 20.04.6 host (which is an Azure build agent) has no context of the CWD and requires files to be supplied via input redirection.
So, for example:
yq < test.yml
works as expected, but
yq test.yml fails with an error such as "error: 1:2: invalid input text 'agent/_work ...".
Verbose output suggests that it tries to stat the file, and fails (but the file exists, as confirmed by a standard cat command), then it proceeds to treat the argument as a yaml string, which fails as expected
Unfortunately, this seems to prevent one from executing commands that require multiple files and use select(fileIndex=x).
Any one have any ideas for how to get around this?
Beta Was this translation helpful? Give feedback.
All reactions