You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eks-workshop-v2 % make create-infrastructure bash hack/create-infrastructure.sh '' Warning: Defaulting region to us-west-2 jq: error: load/1 is not defined at <top-level>, line 1: (.. | select(has("file"))) |= (load(.file)) jq: 1 compile error make: *** [create-infrastructure] Error 3
What did you expect to happen?
make create-infrastructure and make shell to work with updated jq version. (1.7.1) Instead, yq must be updated separately to version 4.44.3 to support these commands.
How can we reproduce it?
Run make create-infrastructure or make shell from Mac OS terminal with jq 1.7.1 installed.
Anything else we need to know?
No response
EKS version
Kubernetes 1.30.5
The text was updated successfully, but these errors were encountered:
This is resolved by ensuring that you have yq version 4.X installed. In many cases yq is being installed by package managers along with jq and pinned to an old version. Explicitly installing yq with your respective package manager seems to resolve the issue.
This is caused by an outdated version of yq that is automatically installed with jq. We tested this with installing jq 1.7.1, which will install an older version of yq that causes this error. To resolve this error, install a separately managed version of yq. Here is the repo for yq - https://github.com/mikefarah/yq
We were able to successfully build and deploy the workshop's infrastructure and test environment (make create-infrastructure and make shell) with jq v1.7.1 and yq v4.44.3 (latest available as of this comment)
It's also important to note that this problem will come up in any environment that has an outdated version of yq - which in my case is running WSL Debian and in @heinrichse's case running macOS.
pengc99
added a commit
to pengc99/eks-workshop-v2
that referenced
this issue
Oct 31, 2024
Installation method
Own AWS account
What happened?
eks-workshop-v2 % make create-infrastructure bash hack/create-infrastructure.sh '' Warning: Defaulting region to us-west-2 jq: error: load/1 is not defined at <top-level>, line 1: (.. | select(has("file"))) |= (load(.file)) jq: 1 compile error make: *** [create-infrastructure] Error 3
What did you expect to happen?
make create-infrastructure
andmake shell
to work with updated jq version. (1.7.1) Instead, yq must be updated separately to version 4.44.3 to support these commands.How can we reproduce it?
Run
make create-infrastructure
ormake shell
from Mac OS terminal with jq 1.7.1 installed.Anything else we need to know?
No response
EKS version
Kubernetes 1.30.5
The text was updated successfully, but these errors were encountered: