Skip to content

Commit

Permalink
build: don't let the release.sh cause rebuilds
Browse files Browse the repository at this point in the history
Don't copy the release.sh to the build source, since it's not required.

Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Sep 24, 2024
1 parent 7ed9454 commit 8d4b72d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nix/lib/sourcer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ let
whitelistSource = src: allowedPrefixes:
builtins.path {
filter = (path: type:
lib.any
(lib.any
(allowedPrefix:
(lib.hasPrefix (toString (src + "/${allowedPrefix}")) path) ||
(type == "directory" && lib.hasPrefix path (toString (src + "/${allowedPrefix}")))
)
allowedPrefixes);
allowedPrefixes)
# there's no reason for this to be part of the build
&& path != (toString (src + "/utils/dependencies/scripts/release.sh"))
);
path = src;
name = "controller";
};
Expand Down

0 comments on commit 8d4b72d

Please sign in to comment.