-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
subproject() regression: cannot use subdirs any more #2794
Comments
I actually agree, completely preventing
Anything else? |
Probably a duplicate of #2719 - not ideal that 0.44 was released without this issue being addressed prior. |
What layout do you have in your |
Not a duplicate. This one is about I have a project with several main loop integration sources. Each source has its own dependencies, they are not used in the same projects (though some are, based on enabled backends in the parent project). |
@sardemff7 Ah, I didn't know you could do |
I see that #2719 is fixed now, would it work to use the same fix for this regression too? |
Hmm, I wonder how this relates to #2943 - @sardemff7 possibly... But the whole subprojects system seems really broken with the last release, me and others keep finding corner cases where subdirectories fail with subprojects in weird ways now. |
I look at it as an opportunity to add more tests so we don't repeat the same mistakes. Changing code is the best way to uncover holes in our test coverage ;) Also this is fixed since #2890. |
This is not fixed at all. This issue is different from #2719 as I said already, and #2890 only fixes |
Sorry, my bad. |
Is it sufficient to allow subproject name to be of type |
My use case is one git submodule (so one directory in |
A more "mesonific" way to set up your project would be to do roughly the following:
You can even set the actual build targets as |
That would work, but it is far from perfect, because you cannot force a dependency then, and I need that (because packagers don’t like automagic dependencies, neither do I, as a packager and a dev). To do that, I would have to add options to the subproject, and I have that boilerplate for another project already. It requires to post-check that options were not changed by the user (because you cannot prevent the user to change subproject options, which is another subject, but makes the whole thing even more annoying). |
It was really handy to allow
/
insubproject()
for git submodules containing several tiny projects with a common purpose but no inter-dependencies. That way, there was no need to handle options (that the user can touch, which means you have to check them manually or the build could fail because the user disabled something needed) and I could just use the part I wanted.The fix for issue #2306 (6083eb2) is quite overkill and prevents a really useful feature to me.
Could we have a trade-off here?
The text was updated successfully, but these errors were encountered: