-
Notifications
You must be signed in to change notification settings - Fork 192
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
Wrong command in ./01_install_requirements.sh script #1620
Comments
yq --version |
I have seen that yq -iy works with yq 3.2.3 but fails with yq 4.40.5, but i think v4 is being installed here: |
Option -y is not available in yq version 4 that is the one being installed openshift-metal3#1620
yq v3 has not been supported since 2021, need to check all places yq is used and make sure they work for yq v4.18.1 and later versions. |
Issue here seems to be that yq 3.4.3 (which is installed by the script) is not installed if another version is already present. removing the offending option -y does not work, because later uses of yq will fail (as incompatable with yq v4). |
just left a comment in the related PR: |
this should help #1668 |
+(./01_install_requirements.sh:102): yq -iy '.[3].dnf.nobest = "true"' /home/dev-scripts/metal3-dev-env/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml
Error: unknown shorthand flag: 'y' in -y
Usage:
yq eval [expression] [yaml_file1]... [flags]
This line is wrong
yq -iy '.[3].dnf.nobest = "true"' ${METAL3_DEV_ENV_PATH}/vm-setup/roles/packages_installation/tasks/centos_required_packages.yml
The text was updated successfully, but these errors were encountered: