import beet
import beet.contrib.vanilla
def main(ctx: beet.Context):
version = '1.19'
vanilla = beet.contrib.vanilla.Vanilla(ctx=ctx, minecraft_version=version)
# fetches 1.19.4 instead
assert vanilla.releases[version].info.data["id"] == version
It seems like this ignoring of minor versions is pervasive in beet right now (#471), although the vanilla lookups have no problem fetching unusual versions as long as their name isn't a prefix of another version.