Fix installing rust@nightly (#49098)

Installing `rust@nightly` fails because the package file declares a conflict of rust versions older than `:1.64` with `gcc>=13`. However, because `nightly` is alphanumerically smaller than any actual version number, `nightly` is incorrectly detected to have a conflict with `gcc>=13` as well. Marking `nightly` as an infinity version instead solves this.
This commit is contained in:
ByteHamster 2025-02-21 18:53:46 +01:00 committed by GitHub
parent 1fa1864b37
commit b304a2d854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
COMMIT_VERSION = re.compile(r"^[a-f0-9]{40}$")
# Infinity-like versions. The order in the list implies the comparison rules
infinity_versions = ["stable", "trunk", "head", "master", "main", "develop"]
infinity_versions = ["stable", "nightly", "trunk", "head", "master", "main", "develop"]
iv_min_len = min(len(s) for s in infinity_versions)