-
Notifications
You must be signed in to change notification settings - Fork 150
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
Stop if JQ is not installed #125
base: 6.4
Are you sure you want to change the base?
Conversation
Running the build without JQ will only lead to more problems, so it is better to fail early
What problems do you experience exactly? Is it all related to the npm dependencies of plugins not being installed because of the missing |
Yes exactly. We have a plugins.json but the build failed because (we believe) the npm install did not run for the plugins:
So I think it is better to enforce the presence of What do you think? |
I think that depends, as long as you don't have plugins that need additional npm dependenies you don't need |
Okay, so maybe we should at least improve the warning. Anyways, I am a fan of things failing early, so I still would say it's fine to just require "jq". |
We could also add a |
I agree, this can be really time consuming and frustrating (for beginners) - I think a flag should be enough. @keulinho what is your fear in adding the exit? Hosters that don't provide the extension or users that get stuck there? |
I guess we should do that change for 6.5 somewhere at https://github.com/shopware/recipes/blob/main/shopware/storefront/6.4/bin/build-storefront.sh ? Shall we go head with a SKIP_DEPENDENCY_CHECK flag? |
I also spent a good amount of time figuring out that issue... That would be really really great to have it merged to the project. At least developers will quickly find out that there is a dependency required, instead of just silently erroring out. By the way, |
It would be nice to have these added to the list of requirements. We also had the issue with our hoster, and needed to convince them to install it. So if that went into the system requirements or recommendations, this could be a place to tell them or check by ourselves. |
Running the build without JQ will only lead to more problems, so it is better to fail early