Replies: 2 comments 2 replies
-
Simplifying this, with testfile.txt: packages:
- source: https://some.url.org/path/to/package/file/package-v1.1.1.tar.gz
target: package-client
- source: https://some.url.org/path/to/other/package/file/other-package-v1.1.1.tar.gz
target: other-package-client
|
Beta Was this translation helpful? Give feedback.
0 replies
-
OK found a work around. I think I'm seeing differences based on the version of powershell, not yq. with pwsh 7.2.17: with pwsh 7.3.7: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using YQ to parse a value out of a YAML file that looks like this:
The YAML file contents are stored in a variable named $yamlData in my Powershell script
My powershell command is like this:
Expected output: "https://some.url.org/path/to/other/package/file/other-package-v1.1.1.tar.gz"
Error: 1:41: invalid input text "other-package-client])..."
How can I modify the command to make it work in the debian/redhat environments with later yq versions?
Edit: Was figuring out how to delimit backticks in the command
Beta Was this translation helpful? Give feedback.
All reactions