Today when specifying --distro you need to provide exactly the correct version information. This is not great since some distros track based on major version only and others with major.minor. This PR changes this behavior by searching for the closest matching namespace based on the provided distro information. So if the user provides --distro alpine:3.20 then we'll correctly line this up with the alpine:3.20 namespace (where as today this will match against edge).
This same loosening of namespace searching based on arbitrary version info has been applied to all distros/namespaces within the v5 schema only.
Fixes #2222
Today when specifying
--distro
you need to provide exactly the correct version information. This is not great since some distros track based onmajor
version only and others withmajor.minor
. This PR changes this behavior by searching for the closest matching namespace based on the provided distro information. So if the user provides--distro alpine:3.20
then we'll correctly line this up with thealpine:3.20
namespace (where as today this will match againstedge
).This same loosening of namespace searching based on arbitrary version info has been applied to all distros/namespaces within the v5 schema only.