Closed amyspark closed 1 week ago
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 https://github.com/mesonbuild/meson/pull/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,https://github.com/mesonbuild/meson/blob/ae857e841b0a6b9b595583e74f5e21676bb83f9d/mesonbuild/msubprojects.py#L375-L377
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.2