You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to work out how to re-compile the pre_commit task when the config changes.
Example:
A user sets up pre_commit for a project with just test in the config.
The next day, the user adds credo --strict to the config, but the pre_commit doesn't update 😢
Currently the only way to force an update is to delete the build folder and recompile.
I think the envy module reloads module configs so maybe we could take a look there at some point.
Update with potential fix
@doc""" Reloads `config/config.exs`. This function can be used to reload configuration that relies on environment variables set by Envy. This workaround is necessary since config files don't have access to dependencies. """defreload_configdoMix.Config.read!("config/config.exs")|>Mix.Config.persistend
Activity
finnhodgkin commentedon Oct 15, 2017
A temporary fix for this is to include a section in the docs advising people to run
mix clean --depsafter changing pre_commit configuration.finnhodgkin commentedon Dec 8, 2017
I think the envy module reloads module configs so maybe we could take a look there at some point.
Update with potential fix