mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
commit
ebd6b2457c
@ -10,22 +10,20 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "buf";
|
||||
version = "1.20.0";
|
||||
version = "1.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bufbuild";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Tr8vsa7PfjoShep2/qhMFLWd4H9xXm9G2YwDS3RenSE=";
|
||||
hash = "sha256-7aS48tfONrDdE+NoTpoz+5TOBDQfEgCwKKkoBnrUTW8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-NnN0MvcyMdIc7vCTTz8yHdRu0SzmmO0DgyYR2k9NPdk=";
|
||||
vendorHash = "sha256-zk7cj3DwfaZg7PRS50qw0tS8lguX4yWcCiPk+2HYah8=";
|
||||
|
||||
patches = [
|
||||
# Skip a test that requires networking to be available to work.
|
||||
./skip_test_requiring_network.patch
|
||||
# Skip TestWorkspaceGit which requires .git and commits.
|
||||
./skip_test_requiring_dotgit.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
@ -40,8 +38,6 @@ buildGoModule rec {
|
||||
preCheck = ''
|
||||
# The tests need access to some of the built utilities
|
||||
export PATH="$PATH:$GOPATH/bin"
|
||||
# To skip TestCloneBranchAndRefToBucket
|
||||
export CI=true
|
||||
'';
|
||||
|
||||
# Allow tests that bind or connect to localhost on macOS.
|
||||
|
@ -1,14 +0,0 @@
|
||||
diff --git a/private/buf/cmd/buf/workspace_test.go b/private/buf/cmd/buf/workspace_test.go
|
||||
index 25e33dd..f593beb 100644
|
||||
--- a/private/buf/cmd/buf/workspace_test.go
|
||||
+++ b/private/buf/cmd/buf/workspace_test.go
|
||||
@@ -340,6 +340,9 @@ func TestWorkspaceNestedArchive(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWorkspaceGit(t *testing.T) {
|
||||
+ // Requires .git directory which we do not retain due to
|
||||
+ // `leaveDotGit` non-determinism
|
||||
+ t.Skip()
|
||||
t.Skip("skip until the move to private/buf is merged")
|
||||
// Directory paths specified as a git reference within a workspace.
|
||||
t.Parallel()
|
Loading…
Reference in New Issue
Block a user