buildGoModule: disallow goPackagePath
This is unnecessary with `buildGoModule`, it's usually cruft from `buildGoPackage` conversions.
This commit is contained in:
parent
241227837b
commit
863706ef30
@ -36,6 +36,9 @@
|
|||||||
|
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
|
|
||||||
|
# Not needed with buildGoModule
|
||||||
|
, goPackagePath ? null
|
||||||
|
|
||||||
, ... }@args':
|
, ... }@args':
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
@ -242,5 +245,7 @@ let
|
|||||||
});
|
});
|
||||||
in if disabled then
|
in if disabled then
|
||||||
throw "${package.name} not supported for go ${go.meta.branch}"
|
throw "${package.name} not supported for go ${go.meta.branch}"
|
||||||
|
else if (goPackagePath != null) then
|
||||||
|
throw "`goPackagePath` not needed with `buildGoModule`"
|
||||||
else
|
else
|
||||||
package
|
package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user