dwyl / dwyl/elixir-pre-commit

Re-compile when config changes

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
bug discuss help wanted
Dominant language
Elixir
Stars
46
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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 :cry:

Currently the only way to force an update is to delete the build folder and recompile.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the pre_commit task and how it reads the project config and build folder. Confirm the current behavior with a config change, then verify that the task recompiles or refreshes its generated hook without requiring the build folder to be deleted.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.