Not 100% clear I understand everything here, but it looks like a bug to me:
Consider the following (valid) Manifest (+all the deps; full MWE environment in this gist; can almost be recreated with pkg> add Wayland_jll#Wayland-v1.21.0+0):
Not really sure whose "fault" it is here, but it feels like Pkg should not generate invalid manifests, even if there's the build metadata magic happening. Instead, it should either update the version or don't update dependency list.
Not 100% clear I understand everything here, but it looks like a bug to me:
Consider the following (valid) Manifest (+all the deps; full MWE environment in this gist; can almost be recreated with
pkg> add Wayland_jll#Wayland-v1.21.0+0
):when resolving this manifest (including on
1.11.0-DEV.1593 (2024-02-14)
), you end up with this diff:The
Wayland_jll
version does not get updated, butEpollShim_jll
gets added as a new dependency, leading to an invalid manifest. This is because Wayland_jll added EpollShim_jll as a dependency when going from1.21.0+0
->1.21.0+1
.Not really sure whose "fault" it is here, but it feels like Pkg should not generate invalid manifests, even if there's the build metadata magic happening. Instead, it should either update the version or don't update dependency list.
X-ref: https://github.com/JuliaLang/Pkg.jl/issues/1568