meson: add check that all present sources are mentioned in a build file #167
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
though we don't want to wild card at build time, we should at minimum CI that nobody has forgot any sources, above and beyond simply whether it builds or not. especially the headers list can get out of date.
Are you just imagining something that pulls out the Meson source inputs and then wildcards through the sources and errors or worns if there's a gap? I'm not sure we can throw a hard error on that but we could mark a non-required label with the CI just to alert authors?
yeah or so. just cuz i made this mistake and i didn't seem to notice it getting caught automatically. we can't not throw a hard error, or else we can't distinguish between it getting worse and staying the same. basically. every file in src should be mentioned in at least one place.
something something
but like. not scuffed
this would be quite useful, it looks like https://gerrit.lix.systems/c/lix/+/505/10 caused a failure by forgetting to add a new file to the meson build files. we can totally see this being hella confusing
ought to be a pre commit check for this, tbh. it's cheap and simple. i would even be cool with shipping a scuffed script as long as it works properly.
though ideally maybe the whole thing should just be generated by a pre-commit hook if possible.