From 5bfdcbecf415829dc49bfe5ddeda3a006fed4a30 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 1 Jun 2024 04:20:00 +0000 Subject: [PATCH] Fix test_cargo_lock_update test_cargo_lock_update was relying in Ruff 0.0.254 which used its own fork of LibCST. Ruff deprecated its fork [1] and removed the repository, hence this tests was failing trying to reach a defunct repository. [1] https://github.com/astral-sh/ruff/commit/072358e26 --- tests/test_cargo_lock_update.py | 6 ++---- tests/testpkgs/cargo-lock-update/default.nix | 14 ++++---------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/test_cargo_lock_update.py b/tests/test_cargo_lock_update.py index 3ee5678..b8df238 100644 --- a/tests/test_cargo_lock_update.py +++ b/tests/test_cargo_lock_update.py @@ -14,7 +14,7 @@ def test_main(helpers: conftest.Helpers) -> None: "--commit", "cargoLock.update", "--version", - "v0.0.255", + "v0.4.7", ] ) subprocess.run( @@ -39,6 +39,4 @@ def test_main(helpers: conftest.Helpers) -> None: check=True, ).stdout.strip() print(diff) - assert ( - "https://github.com/charliermarsh/ruff/compare/v0.0.254...v0.0.255" in diff - ) + assert "https://github.com/astral-sh/ruff/compare/v0.4.5...v0.4.7" in diff diff --git a/tests/testpkgs/cargo-lock-update/default.nix b/tests/testpkgs/cargo-lock-update/default.nix index cdeb25a..e684ecc 100644 --- a/tests/testpkgs/cargo-lock-update/default.nix +++ b/tests/testpkgs/cargo-lock-update/default.nix @@ -2,25 +2,19 @@ rustPlatform.buildRustPackage rec { pname = "ruff"; - version = "0.0.254"; + version = "0.4.5"; src = fetchFromGitHub { - owner = "charliermarsh"; + owner = "astral-sh"; repo = pname; rev = "v${version}"; - hash = "sha256-61Yw4YWolMZbi9nqDdkSH4UxIpPxUO4Aq44ABXZxMbU="; + hash = "sha256-+8JKzKKWPQEanU2mh8p5sRjnoU6DawTQQi43qRXVXIg="; }; cargoLock = { lockFile = src + "/Cargo.lock"; outputHashes = { - "libcst-0.1.0" = "sha256-jG9jYJP4reACkFLrQBWOYH6nbKniNyFVItD0cTZ+nW0="; - "libcst_derive-0.1.0" = "sha256-jG9jYJP4reACkFLrQBWOYH6nbKniNyFVItD0cTZ+nW0="; - "rustpython-ast-0.2.0" = "sha256-Q2PVP+noPvdjoe8OMzEZOHprSwvpu/rmMkllghnf/yI="; - "rustpython-common-0.2.0" = "sha256-Q2PVP+noPvdjoe8OMzEZOHprSwvpu/rmMkllghnf/yI="; - "rustpython-compiler-core-0.2.0" = "sha256-Q2PVP+noPvdjoe8OMzEZOHprSwvpu/rmMkllghnf/yI="; - "rustpython-parser-0.2.0" = "sha256-Q2PVP+noPvdjoe8OMzEZOHprSwvpu/rmMkllghnf/yI="; - "unicode_names2-0.6.0" = "sha256-eWg9+ISm/vztB0KIdjhq5il2ZnwGJQCleCYfznCI3Wg="; + "lsp-types-0.95.1" = "sha256-8Oh299exWXVi6A39pALOISNfp8XBya8z+KT/Z7suRxQ="; }; }; }