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

Support older yq versions #329

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ThomasAunvik
Copy link

@ThomasAunvik ThomasAunvik commented Nov 1, 2024

For some reason, Ubuntu has their latest version to 4.16.2, and that version of yq doesn't use eval by default as it does with the newer versions.

https://mikefarah.gitbook.io/yq#notice-for-v4.x-versions-prior-to-4.18.1

Old 4.16.2:

~$ yq --version
yq (https://github.com/mikefarah/yq/) version 4.16.2

~$ yq '.environment.flutter' pubspec.yaml
Error: unknown command ".environment.flutter" for "yq"
Run 'yq --help' for usage.

~$ yq eval '.environment.flutter' pubspec.yaml 
3.24.4

New version

~$ yq --version
yq (https://github.com/mikefarah/yq/) version v4.44.2
~$ yq '.environment.flutter' pubspec.yaml 
3.24.4
~$ yq eval '.environment.flutter' pubspec.yaml 
3.24.4

One info, latest version of yq is able to be installed trough snap :/

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

Successfully merging this pull request may close these issues.

2 participants