Unverified Commit 773f355b authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

ipfs-cluster: fix build (#449514)

parents 6589886f cabae239
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  buildGo124Module,
  fetchFromGitHub,
}:

buildGoModule rec {
buildGo124Module (finalAttrs: {
  pname = "ipfs-cluster";
  version = "1.1.4";

@@ -13,10 +13,24 @@ buildGoModule rec {
  src = fetchFromGitHub {
    owner = "ipfs-cluster";
    repo = "ipfs-cluster";
    rev = "v${version}";
    rev = "v${finalAttrs.version}";
    hash = "sha256-mdLrLiRNudpQ8i0lvwoNAqhSWJ8VMEC1ZRxXHWHpqLY=";
  };

  checkFlags =
    let
      skippedTests = [
        # Flaky test, sometimes fails with:
        # --- FAIL: TestClustersPeerAddInUnhealthyCluster (7.58s)
        #     peer_manager_test.go:247: failed to dial: failed to dial QmSookyjcPhxchnHeo2jtssHqe8zdmhgEQiY61yUcWjWp5: all dials failed
        #           * [/ip4/127.0.0.1/tcp/46571] dial backoff
        "TestClustersPeerAddInUnhealthyCluster"
      ];
    in
    [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];

  __darwinAllowLocalNetworking = true; # required for tests

  meta = with lib; {
    description = "Allocate, replicate, and track Pins across a cluster of IPFS daemons";
    homepage = "https://ipfscluster.io";
@@ -26,4 +40,4 @@ buildGoModule rec {
      jglukasik
    ];
  };
}
})