From 64ca089436377e1359636c22e19fdd56f0d889ff Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 25 Feb 2022 17:19:19 -0500 Subject: [PATCH] go: Avoid setting excludedPackages for package already being excluded by default --- pkgs/development/tools/go-motion/default.nix | 1 - pkgs/development/tools/gocode-gomod/default.nix | 2 -- pkgs/development/tools/gocode/default.nix | 1 - pkgs/development/tools/gogetdoc/default.nix | 2 -- pkgs/development/tools/golint/default.nix | 2 -- pkgs/development/tools/gotools/default.nix | 2 +- pkgs/development/tools/ineffassign/default.nix | 1 - pkgs/development/tools/interfacer/default.nix | 1 - 8 files changed, 1 insertion(+), 11 deletions(-) diff --git a/pkgs/development/tools/go-motion/default.nix b/pkgs/development/tools/go-motion/default.nix index 9ece650f0cb2..5004afc28e35 100644 --- a/pkgs/development/tools/go-motion/default.nix +++ b/pkgs/development/tools/go-motion/default.nix @@ -9,7 +9,6 @@ buildGoPackage rec { rev = "218875ebe23806e7af82f3b5b14bb3355534f679"; goPackagePath = "github.com/fatih/motion"; - excludedPackages = "testdata"; src = fetchFromGitHub { inherit rev; diff --git a/pkgs/development/tools/gocode-gomod/default.nix b/pkgs/development/tools/gocode-gomod/default.nix index fca346b78c42..c07d38b60733 100644 --- a/pkgs/development/tools/gocode-gomod/default.nix +++ b/pkgs/development/tools/gocode-gomod/default.nix @@ -9,8 +9,6 @@ buildGoModule rec { # standard packages. allowGoReference = true; - excludedPackages = "internal/suggest/testdata"; - src = fetchFromGitHub { owner = "stamblerre"; repo = "gocode"; diff --git a/pkgs/development/tools/gocode/default.nix b/pkgs/development/tools/gocode/default.nix index be9f70da9341..687b69cf2027 100644 --- a/pkgs/development/tools/gocode/default.nix +++ b/pkgs/development/tools/gocode/default.nix @@ -6,7 +6,6 @@ buildGoPackage rec { rev = "4acdcbdea79de6b3dee1c637eca5cbea0fdbe37c"; goPackagePath = "github.com/mdempsky/gocode"; - excludedPackages = "internal/suggest/testdata"; # we must allow references to the original `go` package, # because `gocode` needs to dig into $GOROOT to provide completions for the diff --git a/pkgs/development/tools/gogetdoc/default.nix b/pkgs/development/tools/gogetdoc/default.nix index 2a111a8d1ab3..6f7c189ea9d2 100644 --- a/pkgs/development/tools/gogetdoc/default.nix +++ b/pkgs/development/tools/gogetdoc/default.nix @@ -12,8 +12,6 @@ buildGoModule rec { doCheck = false; - excludedPackages = "\\(testdata\\)"; - src = fetchFromGitHub { inherit rev; diff --git a/pkgs/development/tools/golint/default.nix b/pkgs/development/tools/golint/default.nix index 3187f793127e..aa6ce6c7cda5 100644 --- a/pkgs/development/tools/golint/default.nix +++ b/pkgs/development/tools/golint/default.nix @@ -5,8 +5,6 @@ buildGoModule rec { version = "20201208-${lib.strings.substring 0 7 rev}"; rev = "83fdc39ff7b56453e3793356bcff3070b9b96445"; - excludedPackages = "testdata"; - # we must allow references to the original `go` package, as golint uses # compiler go/build package to load the packages it's linting. allowGoReference = true; diff --git a/pkgs/development/tools/gotools/default.nix b/pkgs/development/tools/gotools/default.nix index 285d546d7421..190a41d2db33 100644 --- a/pkgs/development/tools/gotools/default.nix +++ b/pkgs/development/tools/gotools/default.nix @@ -40,7 +40,7 @@ buildGoModule rec { ''; excludedPackages = "\\(" - + lib.concatStringsSep "\\|" ([ "testdata" "vet" "cover" ]) + + lib.concatStringsSep "\\|" ([ "vet" "cover" ]) + "\\)"; # Set GOTOOLDIR for derivations adding this to buildInputs diff --git a/pkgs/development/tools/ineffassign/default.nix b/pkgs/development/tools/ineffassign/default.nix index 215809577523..111048b562f3 100644 --- a/pkgs/development/tools/ineffassign/default.nix +++ b/pkgs/development/tools/ineffassign/default.nix @@ -9,7 +9,6 @@ buildGoPackage rec { rev = "1003c8bd00dc2869cb5ca5282e6ce33834fed514"; goPackagePath = "github.com/gordonklaus/ineffassign"; - excludedPackages = "testdata"; src = fetchFromGitHub { inherit rev; diff --git a/pkgs/development/tools/interfacer/default.nix b/pkgs/development/tools/interfacer/default.nix index 4358ee244896..072818ea621d 100644 --- a/pkgs/development/tools/interfacer/default.nix +++ b/pkgs/development/tools/interfacer/default.nix @@ -9,7 +9,6 @@ buildGoPackage rec { rev = "c20040233aedb03da82d460eca6130fcd91c629a"; goPackagePath = "mvdan.cc/interfacer"; - excludedPackages = "check/testdata"; src = fetchFromGitHub { inherit rev;