Skip to content

Commit

Permalink
[PATCH 1/2] fix: overlapped local replacement
Browse files Browse the repository at this point in the history
nix-community#156

Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed Nov 5, 2024
1 parent 3139ab5 commit 82f91a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ let
(name: value: (
''
mkdir -p $(dirname vendor/${name})
ln -s ${pwd + "/${value.path}"} vendor/${name}
# it could fail for overlapped modules, see: https://github.com/nix-community/gomod2nix/pull/156
ln -s ${pwd + "/${value.path}"} vendor/${name} || true
''
))
localReplaceAttrs);
Expand Down

0 comments on commit 82f91a6

Please sign in to comment.