There were three issues: the build command was using a Mutex guard unnecessarily since there was already a mutex state to lock when rebuilds occur. This lock was preventing rebuilds and causing the bug.
Second is it was watching for the file environments.toml rather than watching the directory and for the env file within it. This was causing a problem where if there wasn't an environments.toml file it would throw an error.
Third issue was the test function that checked for lines from the stderr stream wasn't actually failing when it should since it wasn't infinitely looping within the timeout method.
Fixes https://github.com/loambuild/loam/issues/148
There were three issues: the build command was using a Mutex guard unnecessarily since there was already a mutex state to lock when rebuilds occur. This lock was preventing rebuilds and causing the bug.
Second is it was watching for the file
environments.toml
rather than watching the directory and for the env file within it. This was causing a problem where if there wasn't anenvironments.toml
file it would throw an error.Third issue was the test function that checked for lines from the stderr stream wasn't actually failing when it should since it wasn't infinitely looping within the timeout method.