Exclude already built sources for static build

We now do not copy the `bin` directory to the target nix sources to
avoid skipping the build because "everything is up to date".

Fixes https://github.com/containers/podman/issues/12198

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
Sascha Grunert 2021-11-09 09:41:42 +01:00 committed by Matthew Heon
parent e9f6e5194c
commit e456873c02
2 changed files with 4 additions and 2 deletions

View file

@ -59,7 +59,8 @@ let
self = with pkgs; buildGoModule rec {
name = "podman";
src = ./..;
src = builtins.filterSource
(path: type: !(type == "directory" && baseNameOf path == "bin")) ./..;
vendorSha256 = null;
doCheck = false;
enableParallelBuilding = true;

View file

@ -57,7 +57,8 @@ let
self = with pkgs; buildGoModule rec {
name = "podman";
src = ./..;
src = builtins.filterSource
(path: type: !(type == "directory" && baseNameOf path == "bin")) ./..;
vendorSha256 = null;
doCheck = false;
enableParallelBuilding = true;