meson reserved words in project name
Affected version
- Nightly flatpak: Yes
- Other: Ubuntu 22.04.2 LTS
Steps to reproduce
- We start creating any project that uses meson for assembly
- Project Name writing a test
- Run the build
Current behavior
Build fails with error.
ERROR: Target name 'test' is reserved for Meson's internal use. Please rename.
Expected behavior
In fact, our application should assemble. But due to the fact that the word test is reserved in meson, this does not happen.
Additional information
I don't know how exactly to work it out, but it would be nice to forbid or warn that reserved words are not allowed in names for projects based on meson. To be more precise, these comparisons are defined in the interpreter.py meson file in the validate_forbidden_targets function. In fact, there are three comparisons of names starting with meson-internal__, as well as with meson-, which in fact fall under one condition. And also comparison with FORBIDDEN_TARGET_NAMES list defined in coredata.py
PS: I have a bad habit of naming test projects test even though I know it's wrong. That's why I got this error