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

make fails with error: unknown command "/bin/sh" for "yq" #55

Closed
droid42 opened this issue Feb 19, 2021 · 0 comments · Fixed by #56
Closed

make fails with error: unknown command "/bin/sh" for "yq" #55

droid42 opened this issue Feb 19, 2021 · 0 comments · Fixed by #56

Comments

@droid42
Copy link
Contributor

droid42 commented Feb 19, 2021

Steps to reproduce:

  • remove all local images of "yq"
  • make

Result:

Status: Downloaded newer image for mikefarah/yq:latest
Error: unknown command "/bin/sh" for "yq"
Run 'yq --help' for usage.
make: *** [Makefile:131: env] Error 1

Cause:
env.sh has a docker run "mikefarah/yq" which pulls the latest image which for some time now is version 4.x, which incorporates some changes that break compatibility, see https://mikefarah.gitbook.io/yq/upgrading-from-v3:

  • entrypoint ist now /usr/bin/yq --> which is why the error above occurs
  • In v3 yq had seperate commands for reading/writing/deleting and more. In v4 all these have been embedded into a single expression.

So we should simply use mikefarah/yq:3

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 a pull request may close this issue.

1 participant