You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading packages with rattler-build, we use different fields from parsed IndexJson to upload packages to anaconda.org. If we attempt upload a package with version 1.2.3_Beta1, it will fail because the original version case is lost after parsing and version.to_string() will return 1.2.3_beta1. Subsequently a release 1.2.3_beta1 is created but anaconda.org rejects the package upload as the versions from the IndexJson and the release are not the same. While it is true that 1.2.3_Beta1 == 1.2.3_beta1 when comparing versions, rattler should return the version with the original version when calling .to_string().
The following unit-test should pass:
#[test]fnpreserve_case(){let v = "1.2.3-Beta1";let version = Version::from_str(v).unwrap();assert_eq!(version.to_string(), v);}
The text was updated successfully, but these errors were encountered:
When uploading packages with rattler-build, we use different fields from parsed IndexJson to upload packages to anaconda.org. If we attempt upload a package with version
1.2.3_Beta1
, it will fail because the original version case is lost after parsing andversion.to_string()
will return1.2.3_beta1
. Subsequently a release1.2.3_beta1
is created but anaconda.org rejects the package upload as the versions from the IndexJson and the release are not the same. While it is true that1.2.3_Beta1
==1.2.3_beta1
when comparing versions, rattler should return the version with the original version when calling.to_string()
.The following unit-test should pass:
The text was updated successfully, but these errors were encountered: