-
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
Subprojects update fails for all Git wraps with revision = 'head' #12730
Comments
Isn't it rather a documentation issue? Shouldn't revision in the wrap file be HEAD instead? |
@bruchar1 Tests also use the same convention (Git revision value in lowercase), they don't show up as broken because updating is not tested:
|
That's a good point. I have no strong opinion about which approach is the best. I will let meson developers decide of this. |
I've opened #13840 to fix this. Because git is case-sensitive about HEAD, my opinion is that the meson code should not convert the case, and the docs and wraps should use "HEAD" not "head". |
Describe the bug
As per https://mesonbuild.com/Wrap-dependency-system-manual.html#specific-to-vcsbased-wraps, we can use
head
to tell Meson to always use the latest commit when checking a subproject out:However, if one issues a
meson subprojects update
after a build,meson/mesonbuild/msubprojects.py
Lines 375 to 377 in ae857e8
this block will instead cause all updates to fail with the following error:
This is really simple to fix: just uppercase
revision
ifhead
prior to issuing the Git call above:To Reproduce
Clone and initialise https://github.com/dragonCodecs/libAudio, then manually switch any of the above deps to an older commit.
Expected behavior
Meson should be able to update these wraps.
system parameters
meson --version
1.3.1ninja --version
if it's a Ninja build 1.10.2The text was updated successfully, but these errors were encountered: