amber-lang / amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.8k stars 81 forks source link

[Feature] Runtime dependencies checker? #95

Open b1ek opened 3 months ago

b1ek commented 3 months ago

Im pretty sure that amber depends on things like bc, sed and [[, and possibly other script-specific dependencies.

Wouldn't it make sense to add a checker in the start of the program to ensure that all of them are there? That would prevent A LOT of runtime errors, as well as ensure safety

Ph0enixKM commented 3 months ago

True. This is fairly needed. The checks should be added by default but also we need to let developers disable adding them as well.

boushley commented 3 months ago

We should probably also only focus on the dependencies of the Amber runtime. Trying to extract and automatically detect script specific dependencies seems like a bigger problem.

Ph0enixKM commented 3 months ago

This problem is currently being resolved by @b1ek as a separate project https://github.com/b1ek/bshchk.