-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add dependency check to Makefile #124
base: main
Are you sure you want to change the base?
Add dependency check to Makefile #124
Conversation
A new Bash script `dependancy_check.sh` has been added to ensure that the minimum required Bash version is used. This script is now called in the Makefile as part of the `check_dependencies` task. This aims to prevent errors due to incompatible Bash versions.
The `dependancy_check.sh` script has been expanded to improve the verification process. It not only checks the running bash version for compatibility, but also ensures that a set list of commands are available before proceeding. This eliminates potential breakdowns due to missing dependencies or unsupported bash versions.
Reshaped the DEVELOPMENT.md file to provide thorough and more explicit instructions. Each section is now easily accessible and comprehensible, eliminating any potential ambiguity for the user. This streamlines the development process by clearly laying out instructions for checking dependencies, generating Jsonnet libraries and documents, as well as understanding usage of the Grafonnet-base library and examples.
Thanks of this, the |
I've been thinking about this, perhaps it would be much safer to pour this all into a container image rather than expecting a local development environment. WDYT? |
@Duologic I agree moving to a dev container would be a much better way to handle it. May I suggest creating a Dev container or multiple? Plus makes for great integration in most popular IDE. |
A new Bash script
dependancy_check.sh
has been added to ensure that the minimum required Bash version is used and that required commands used by generate are available. This script is now called in the Makefile as part of thecheck_dependencies
task. This aims to prevent errors due to incompatible Bash versions or missing commands.After encountering some minor inconvenience debugging why then
generate.sh
script was failing, I added this script to ensure others don't waste any time.Also, minor clean up of the Development readme.