Merge pull request #235288 from otavio/fix/cargo-msrv

cargo-msrv: avoid updating rc and beta releases
This commit is contained in:
Thiago Kenji Okada 2023-06-07 20:07:58 +00:00 committed by GitHub
commit 228833432d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
, pkg-config
, rustup
, openssl
@ -9,6 +8,7 @@
, libiconv
, Security
, makeWrapper
, gitUpdater
}:
rustPlatform.buildRustPackage rec {
@ -25,7 +25,10 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-/Bspy94uIP/e4uJY8qo+UPK1tnPjglxiMWeYWx2qoHk=";
passthru = {
updateScript = nix-update-script { };
updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = ".(rc|beta).*";
};
};
# Integration tests fail