From ffdc305e978d3c563f395102d814758baa1c69b2 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Thu, 7 Nov 2024 22:22:30 +0000 Subject: [PATCH] cargo-lambda: 1.4.0 -> 1.5.0 --- .../tools/rust/cargo-lambda/default.nix | 36 +++++-------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-lambda/default.nix b/pkgs/development/tools/rust/cargo-lambda/default.nix index b63c9e43b415..c66e39c01baa 100644 --- a/pkgs/development/tools/rust/cargo-lambda/default.nix +++ b/pkgs/development/tools/rust/cargo-lambda/default.nix @@ -16,16 +16,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-lambda"; - version = "1.4.0"; + version = "1.5.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - hash = "sha256-QTFIFD04pAcNgj+ktY8WP0ScDmSy6mNlhfiXAabMlGE="; + hash = "sha256-58kVtwBZEAlv9eVesqmWMZ+KxAwEiGMm8mCf9X5tPMI="; }; - cargoHash = "sha256-1/+bkxEpIvaJBJatqpX186MHKOdLO8Jiw8NEnyr9ctg="; + cargoHash = "sha256-DoMIVpYtEHvYSW2THpZFdhoFI0zjC70hYnwnzGwkJ4Q="; nativeCheckInputs = [ cacert ]; @@ -43,36 +43,16 @@ rustPlatform.buildRustPackage rec { ]; checkFlags = [ - # Disabled because they access the network. - "--skip=test_build_basic_extension" - "--skip=test_build_basic_function" - "--skip=test_build_basic_zip_extension" - "--skip=test_build_basic_zip_function" - "--skip=test_build_event_type_function" - "--skip=test_build_http_feature_function" - "--skip=test_build_http_function" - "--skip=test_build_internal_zip_extension" - "--skip=test_build_logs_extension" - "--skip=test_build_telemetry_extension" - "--skip=test_build_zip_workspace" + # Tests disabled because they access the network. "--skip=test_download_example" - "--skip=test_init_subcommand" - "--skip=test_init_subcommand_without_override" - "--skip=test_build_example" - "--skip=test_deploy_workspace" - "--skip=test_add_files" - "--skip=test_consistent_hash" - "--skip=test_create_binary_archive_from_target" - "--skip=test_create_binary_archive_with_base_path" - "--skip=test_zip_extension" - "--skip=test_zip_funcion" - "--skip=test_zip_funcion_with_files" - "--skip=test_zip_internal_extension" ]; - # remove date from version output to make reproducible + # Remove files that don't make builds reproducible: + # - Remove build.rs file that adds the build date to the version. + # - Remove cargo_lambda.rs that contains tests that reach the network. postPatch = '' rm crates/cargo-lambda-cli/build.rs + rm crates/cargo-lambda-cli/tests/cargo_lambda.rs ''; postInstall = ''