Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force rerun of version splice when commit or cabal file changes #188

Open
guaraqe opened this issue Jun 8, 2023 · 1 comment
Open

Force rerun of version splice when commit or cabal file changes #188

guaraqe opened this issue Jun 8, 2023 · 1 comment

Comments

@guaraqe
Copy link
Contributor

guaraqe commented Jun 8, 2023

I has looking at the definition of tGitInfo, and it seems to use addDependentFile to track whether the splice needs to be recompiled or not.

Maybe this trick could be used here too, and also the cabal file added to the dependent files, so that no extra effort is needed to make sure versions are in-line with the compiled binary.

@istathar
Copy link
Member

istathar commented Jun 9, 2023

This is such a good idea! I knew [something like this mechanism] was triggered when you included a file verbatim, for example, but it had not occurred to me that the mechanism was available and could be used here.

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

No branches or pull requests

2 participants