Proposed change to fix stop_on_error=false not working in .air.toml #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello guys,
I found a funny bug: I tried to set
stop_on_error = false
in.air.toml
, but it had no effect. After some debugging, it turns out that the reason is thismergo
issue: darccio/mergo#129The problem is that
stop_on_error
is defined astrue
in thedefaultConfig()
function, butmergo
won't overwritetrue
withfalse
from thedefaultPathConfig()
function.Other solutions are possible, but this looks the simplest without truly introducing
true
/false
/undefined
in the concept of air's config for the sake of this one value. Since thestop_on_error = true
snippet is in the example config file since 2020, and actually before that the default was the currentfalse
(because the feature was non-existent), I think it would cause a problem for very few people, and make the feature switch-off-able again.Thanks for the great tool, and keep up the good work!
Kristof