From 863706ef307a4fa62370b7ee0db85f10a422e880 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 17 Dec 2020 05:40:26 +1000 Subject: [PATCH] buildGoModule: disallow goPackagePath This is unnecessary with `buildGoModule`, it's usually cruft from `buildGoPackage` conversions. --- pkgs/development/go-modules/generic/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 3714a1f6f0fb..58716d371709 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -36,6 +36,9 @@ , meta ? {} +# Not needed with buildGoModule +, goPackagePath ? null + , ... }@args': with builtins; @@ -242,5 +245,7 @@ let }); in if disabled then throw "${package.name} not supported for go ${go.meta.branch}" +else if (goPackagePath != null) then + throw "`goPackagePath` not needed with `buildGoModule`" else package