mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
synthesizeContainerBackedRevision hashed the raw, caller-supplied version string, but BaGetter's own version matching (BagetterSidecarClient.matchVersion, via NuGetVersions.normalize) already normalizes a requested NuGet version before resolving it, per AWS's own documented leading/trailing-zero rules. Two equivalent spellings of the same stored version (1.00.0 and 1.0.0) therefore returned different versionRevision values, and a revision obtained with one spelling never matched a revision-pinned request using the other. Normalizes the version for nuget only before hashing, shared by every one of synthesizeContainerBackedRevision's six call sites (DescribePackageVersion, GetPackageVersionAsset, GetPackageVersionReadme, both sides of CopyPackageVersions, and ListPackageVersionAssets), so a single change fixes all of them consistently rather than patching one at a time. Maven, npm, and pypi are unaffected: only BaGetter's client normalizes the requested version before matching; Reposilite and Verdaccio match the literal string. Fixes #5967.