From b3d29abed3f8c3336094664ca2d71969b06afd0b Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl Date: Tue, 19 May 2026 13:58:35 +0200 Subject: [PATCH] mountpoint-s3: 1.17.0 -> 1.22.3 Auto-update has been failing since 1.18.0 because newer releases added tests and a doctest that try to construct a real S3CrtClient. That requires a TLS trust store, which is not present in the Nix sandbox (AWS_IO_TLS_ERROR_DEFAULT_TRUST_STORE_NOT_FOUND). Skip the two new failing mock tests and disable doctests so the package builds again, unblocking future auto-updates. --- pkgs/by-name/mo/mountpoint-s3/package.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/mo/mountpoint-s3/package.nix b/pkgs/by-name/mo/mountpoint-s3/package.nix index a029d2864701..dafb8e5d5c27 100644 --- a/pkgs/by-name/mo/mountpoint-s3/package.nix +++ b/pkgs/by-name/mo/mountpoint-s3/package.nix @@ -9,17 +9,17 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "mountpoint-s3"; - version = "1.17.0"; + version = "1.22.3"; src = fetchFromGitHub { owner = "awslabs"; repo = "mountpoint-s3"; tag = "v${finalAttrs.version}"; - hash = "sha256-uV0umUoJkYgmjWjv8GMnk5TRRbCCJS1ut3VV1HvkaAw="; + hash = "sha256-22tx8ozXkzBNAflDPc7cdfUh9TWD6aB/Fe/z/dPZ694="; fetchSubmodules = true; }; - cargoHash = "sha256-zDgAGOuK0Jkmm554qZsaA/ABFhuupJ+WToO8HSPp7Xc="; + cargoHash = "sha256-SSSXqgJ3OERCVw81iXqXRRpVXgdwhlefHhI/qvQyl4g="; # thread 'main' panicked at cargo-auditable/src/collect_audit_data.rs:77:9: # cargo metadata failure: error: none of the selected packages contains these features: libfuse3 @@ -32,6 +32,15 @@ rustPlatform.buildRustPackage (finalAttrs: { ]; buildInputs = [ fuse3 ]; + # The S3CrtClient doctest in mountpoint-s3-client constructs a real client, + # which requires a TLS trust store unavailable in the sandbox. + cargoTestFlags = [ + "--workspace" + "--lib" + "--bins" + "--tests" + ]; + checkFlags = [ #thread 's3_crt_client::tests::test_expected_bucket_owner' panicked at mountpoint-s3-client/src/s3_crt_client.rs:1123:47: #Create test client: ProviderFailure(Error(1173, "aws-c-io: AWS_IO_TLS_ERROR_DEFAULT_TRUST_STORE_NOT_FOUND, Default TLS trust store not found on this system. Trusted CA certificates must be installed, or \"override default trust store\" must be used while creating the TLS context.")) @@ -44,9 +53,11 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=s3_crt_client::tests::test_expected_bucket_owner" "--skip=s3_crt_client::tests::test_user_agent_with_prefix" "--skip=s3_crt_client::tests::test_user_agent_without_prefix" + "--skip=test_lookup_throttled_mock::both_list_and_head" "--skip=test_lookup_throttled_mock::head_object" "--skip=test_lookup_throttled_mock::list_object" "--skip=test_lookup_unhandled_error_mock" + "--skip=test_read_unhandled_error_mock" "--skip=tests::smoke" # fuse module not available on build machine ? #