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

Override file-writing builtin functions such that they refuse to modify the source tree #1

Open
ChrisKitching opened this issue Nov 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ChrisKitching
Copy link
Member

Seems like it would be a handy feature to override file(), configure_file() and friends such that they yell at you if you attempt to write to the source tree. We're commonly encountering problematic build systems that have cmake build systems that write things into the source tree (not just in the sense that the cmake object tree is inside the srcdir: I mean that, even in the case of an out-of-tree build, they actually write to the source tree - and usually have a gitignore rule to hide the madness). Yikes.

Such logic often leads to all kinds of nastiness, of course.

@Sheeo Sheeo added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants