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

Detect if jq already exists on the system #137

Closed
LaurentGoderre opened this issue Sep 13, 2018 · 5 comments
Closed

Detect if jq already exists on the system #137

LaurentGoderre opened this issue Sep 13, 2018 · 5 comments

Comments

@LaurentGoderre
Copy link

In my alpine linux container, it is easier to install from package manager that installing all the build tools. It would be nice if there was a way to detect an installed version before building.

@davesnx
Copy link
Member

davesnx commented Oct 17, 2018

Hey @LaurentGoderre

We don't really want to depend on a global installation of jq. But I can see the need.

We could consider add an env var that forces to not download the binary, would that work for you?

@LaurentGoderre
Copy link
Author

Absolutely!!

In the meantime, in my Dockerfile, I do a symlink to make it work but it isn't ideal for maintenance.

@davesnx
Copy link
Member

davesnx commented Apr 8, 2019

Hey @LaurentGoderre

Pretty late, but I needed and I implement the NODE_JQ_SKIP_INSTALL_BINARY env variable. It's un-documented right now, but if you set NODE_JQ_SKIP_INSTALL_BINARY=true it will skip the instalation!

@davesnx davesnx closed this as completed Apr 8, 2019
@davesnx
Copy link
Member

davesnx commented Apr 8, 2019

1.6.0

@davesnx davesnx reopened this Apr 8, 2019
@davesnx davesnx closed this as completed Apr 8, 2019
@LaurentGoderre
Copy link
Author

Awesome! Thank you!

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

No branches or pull requests

2 participants