Skip to content

Commit

Permalink
buildGoModule: remove goPackagePath warning
Browse files Browse the repository at this point in the history
As buildGoPackage was removed, it is unlikely for attributes of
buildGoModule to get mixed up with those of buildGoPackage.

Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Nov 18, 2024
1 parent 742af03 commit 3776ca5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkgs/build-support/go/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
# Meta data for the final derivation.
, meta ? { }

# Not needed with `buildGoModule`.
, goPackagePath ? ""

# Go linker flags.
, ldflags ? [ ]
# Go build flags.
Expand All @@ -61,8 +58,6 @@
, ...
}@args':

assert goPackagePath != "" -> throw "`goPackagePath` is not needed with `buildGoModule`";

let
args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" ];

Expand Down

0 comments on commit 3776ca5

Please sign in to comment.