about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2022-11-10 14:40:32 +0100
committerGitHub <noreply@github.com>2022-11-10 14:40:32 +0100
commit5f588eb4a958f1a526ed8da02d6ea1bea0047b9f (patch)
tree53d61218567b6f0497ca0be9191d1dd7df26659c /pkgs/development
parent433cb7b6c26945a2ef8e296f3021744975f093db (diff)
parentf8cd032621c770b22f0c1970d92909e81eab69ff (diff)
Merge pull request #200518 from avdv/buf-fix-cyclic-import-test
buf: Add patch to make TestCyclicImport deterministic
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/buf/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/tools/buf/default.nix b/pkgs/development/tools/buf/default.nix
index 7b49e59d37491..5acd05013faf5 100644
--- a/pkgs/development/tools/buf/default.nix
+++ b/pkgs/development/tools/buf/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildGoModule
 , fetchFromGitHub
+, fetchpatch
 , protobuf
 , git
 , testers
@@ -29,6 +30,16 @@ buildGoModule rec {
     # Remove reliance of tests on file protocol which is disabled in git by default now
     # Rebased upstream change https://github.com/bufbuild/buf/commit/bcaa77f8bbb8f6c198154c7c8d53596da4506dab
     ./buf-tests-dont-use-file-transport.patch
+    # Make TestCyclicImport tests deterministic (see https://github.com/bufbuild/buf/pull/1551)
+    (fetchpatch {
+      url = "https://github.com/bufbuild/buf/commit/75b5ef4c84f5953002dff95a1c66cb82b0e3b06f.patch";
+      sha256 = "sha256-pKF3VXkzttsTTT2r/Z37ug9nnu8gRdkfmv/aTOhAJpw=";
+    })
+    # Make TestDuplicateSyntheticOneofs check deterministic (see https://github.com/bufbuild/buf/pull/1579)
+    (fetchpatch {
+      url = "https://github.com/bufbuild/buf/commit/9e72aa314e6f02b36793caa5f6068394cbdcb98c.patch";
+      sha256 = "sha256-6NEF3sP1EQ6cQxkH2xRyHxAD0OrXBlQQa05rLK998wo=";
+    })
   ];
 
   nativeBuildInputs = [ installShellFiles ];