diff --git a/goss/goss-linux.yaml b/goss/goss-linux.yaml index 68aba015b..f80285e52 100644 --- a/goss/goss-linux.yaml +++ b/goss/goss-linux.yaml @@ -195,7 +195,7 @@ command: exec: yq --version exit-status: 0 stdout: - - 4.40.5 + - 4.25.3 zip: exec: zip -v exit-status: 0 diff --git a/goss/goss-windows.yaml b/goss/goss-windows.yaml index fd14b725e..8f75deec6 100644 --- a/goss/goss-windows.yaml +++ b/goss/goss-windows.yaml @@ -151,7 +151,7 @@ command: exec: yq --version exit-status: 0 stdout: - - 4.40.5 + - 4.25.3 file: C:\Program Files\Chromium\Application\: contains: [] diff --git a/provisioning/tools-versions.yml b/provisioning/tools-versions.yml index 2899dc351..7ff8c7459 100644 --- a/provisioning/tools-versions.yml +++ b/provisioning/tools-versions.yml @@ -37,5 +37,5 @@ updatecli_version: 0.70.0 vagrant_version: 2.4.0 windows_pwsh_version: 7.4.0 xq_version: 1.2.3 -yq_version: 4.40.5 +yq_version: 4.25.3 playwright_version: 1.40.1 diff --git a/updatecli/updatecli.d/yq.yml b/updatecli/updatecli.d/yq.yml index 3a7ea6108..edc0ef89d 100644 --- a/updatecli/updatecli.d/yq.yml +++ b/updatecli/updatecli.d/yq.yml @@ -27,6 +27,14 @@ sources: transformers: - trimprefix: v +conditions: + checkForChocolateyPackage: + kind: http + disablesourceinput: true # Do not pass source as argument to the command line + spec: + url: https://community.chocolatey.org/packages/yq/{{ source "lastReleaseVersion" }} + # command: curl https://community.chocolatey.org/packages/awscli/{{ source "lastReleaseVersion" }} --silent --show-error --location --fail --output /dev/null + targets: updateVersion: name: Update the `yq` version in the provision-env.yml file