Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLorimer committed Dec 23, 2021
1 parent a318f45 commit 0da0f70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions builder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
, go
}:
let

parseGoMod = import ./parser.nix;

removeExpr = refs: ''remove-references-to ${lib.concatMapStrings (ref: " -t ${ref}") refs}'';
Expand Down Expand Up @@ -73,10 +72,10 @@ let
${lib.concatStringsSep "\n" localReplaceCommands}
'' +
(if customVendorSrc == null
then ""
else ''
cp -R ${customVendorSrc}/* vendor/
''
then ""
else ''
cp -R ${customVendorSrc}/* vendor/
''
) +
''
find vendor
Expand Down
1 change: 0 additions & 1 deletion builder/parser.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Parse go.mod in Nix
# Returns a Nix structure with the contents of the go.mod passed in
# in normalised form.

let
inherit (builtins) elemAt mapAttrs split foldl' match filter typeOf;

Expand Down

0 comments on commit 0da0f70

Please sign in to comment.