subprojects: re-include *.wrap files
PATCH 1/1 subprojects: re-include *.wrap files
The existing wrap files e.g. anyhow-1-rs.wrap are ignored because meson extract the sources in the subprojects directory
This is not a problem for git itself, because files that had already been added are properly tracked, but tools such as fd-find blindly trust the ignore rules and fail to pick up the .wrap files, making discoverying the build system (when e.g. adding another crate or just curiosity) more difficult than necessary
This added rule re-adds the wrap files so they now properly get picked up.
---
Stumbled upon this when looking at the rust build system out of curiosity (because stsquad asked something related on IRC)
It probably doesn't matter much, but took me more time than it should have to find the wrap files, so might as well improve this for the next one to look at these.
--- subprojects/.gitignore | 3 +++ 1 file changed, 3 insertions(+)
subprojects/.gitignore +3 -0
@@ -26,3 +26,6 @@ # Workaround for Meson v1.9.0 https://github.com/mesonbuild/meson/issues/14948 /.wraplock + +# re-include wrap files regardless of ignores above +!/*.wrap
---
base-commit: acc271509ab015b9e064065f26d41a61e01e641b
change-id: 20260821-subprojects-ignore-8a9460a6d7ad
Best regards,
Signature · 1 line
Dominique Martinet | Asmadeus
Quoted 13 lines · Dominique Martinet
The existing wrap files e.g. anyhow-1-rs.wrap are ignored because meson extract the sources in the subprojects directory
This is not a problem for git itself, because files that had already been added are properly tracked, but tools such as fd-find blindly trust the ignore rules and fail to pick up the .wrap files, making discoverying the build system (when e.g. adding another crate or just curiosity) more difficult than necessary
This added rule re-adds the wrap files so they now properly get picked up.
Quoted 8 lines
Signed-off-by Dominique Martinet <[email protected]>---
Stumbled upon this when looking at the rust build system out of curiosity (because stsquad asked something related on IRC)It probably doesn't matter much, but took me more time than it should have to find the wrap files, so might as well improve this for the next one to look at these.
Quoted 25 lines
--- subprojects/.gitignore | 3 +++ 1 file changed, 3 insertions(+)subprojects/.gitignore +3
-1@@ -26,3 +26,6 @@ # Workaround for Meson v1.9.0 https://github.com/mesonbuild/meson/issues/14948 /.wraplock + +# re-include wrap files regardless of ignores above +!/*.wrap ---base-commit:
acc271509ab015b9e064065f26d41a61e01e641b
change-id: 20260821-subprojects-ignore-8a9460a6d7adBest regards,
--
Dominique Martinet | Asmadeus
Signature · 1 line
Marc-André Lureau