summary refs log tree commit diff
path: root/pkgs/development/tools/buf/default.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-11-01 18:29:00 +0100
committersternenseemann <sternenseemann@systemli.org>2022-11-01 21:19:42 +0100
commitebb0a9b939409faf3b80c8c680812d69c2791271 (patch)
treeb7481b669be7bd4a0addbefb0b7ff5351525d596 /pkgs/development/tools/buf/default.nix
parenteeca5969b3f42ac943639aaec503816f053e5e53 (diff)
downloadnixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar.gz
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar.bz2
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar.lz
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar.xz
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.tar.zst
nixpkgs-ebb0a9b939409faf3b80c8c680812d69c2791271.zip
buf: remove reliance of tests on git file transport
A recent git security update disabled the file transport by default,
see https://github.blog/2022-10-18-git-security-vulnerabilities-announced/#cve-2022-39253

We can pick an upstream patch which needed to be rebased unfortunately,
so we can't fetch it directly from GitHub.
Diffstat (limited to 'pkgs/development/tools/buf/default.nix')
-rw-r--r--pkgs/development/tools/buf/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/buf/default.nix b/pkgs/development/tools/buf/default.nix
index 5d5e4084085..28e56833856 100644
--- a/pkgs/development/tools/buf/default.nix
+++ b/pkgs/development/tools/buf/default.nix
@@ -26,6 +26,9 @@ buildGoModule rec {
     ./skip_test_requiring_network.patch
     # Skip TestWorkspaceGit which requires .git and commits.
     ./skip_test_requiring_dotgit.patch
+    # 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
   ];
 
   nativeBuildInputs = [ installShellFiles ];