juxt / mach

A remake of make (in ClojureScript)
246 stars 21 forks source link

Check for existence of Machfile.edn #59

Closed crimeminister closed 6 years ago

crimeminister commented 6 years ago

Adds a check to the shell script that invokes mach for the existence of a Machfile.edn, and exits with an error message if that's not the case. This avoids the error that occurs when mach is invoked accidentally from somewhere where a Machfile isn't available, avoiding the creation of an unnecessary .mach/ directory.

Fixes #58

I had added a (ensure-machfile-exists) function to mach.core before realising that the wrapper script might be a better place to do this check. If you'd prefer to handle this some other way, I'm happy to make whatever changes you'd like.

jonpither commented 6 years ago

Thanks! Will go out in the next version.