Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@macabu
Copy link

@macabu macabu commented Sep 22, 2025

When the config stop_on_error is set to true, the built binary in bin gets deleted after stopping air.

However, it can be useful to to keep the binary around when starting a new session of air to not have to recompile it, where we'd like to stop air with build errors (stop_on_error=true) but keep the latest built binary.

But because stop_on_error=false basically requires that the binary exists in order to work, this new config keep_built_binary is supplementary and only has effect if stop_on_error=true.

The new config is set to false by default to not create any breaking changes.

Happy to discuss the approach, naming and so on, but hopefully the idea behind is clear.

When stop_on_error is true, the binary is always deleted.

However, it can be useful to keep that around to speed up starting a new session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant