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

Merged
merged 1 commit into from
Nov 23, 2024
Merged

Support older yq versions #329

merged 1 commit into from
Nov 23, 2024

Conversation

ThomasAunvik
Copy link
Contributor

@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 :/

@bartekpacia
Copy link
Collaborator

Hey, thanks!

@bartekpacia bartekpacia merged commit 74af56c into subosito:main Nov 23, 2024
39 checks passed
penkzhou pushed a commit to penkzhou/flutter-action that referenced this pull request Nov 28, 2024
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.

3 participants