Skip to contentSkip to conversation

subprojects: re-include *.wrap files

PATCH In review Dominique Martinet 2 participants 2 messages Aug 21 – Aug 24

lore
Share & tools
lore
#0 lore raw

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
index 011ce4dc3b77..4bdedb081601 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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

---
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
index 011ce4dc3b77..4bdedb081601 100644
@@ -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,
--
Dominique Martinet | Asmadeus

Signature · 1 line
Marc-André Lureau