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
parent 3ccd999340
commit d0b502fcea
No known key found for this signature in database
GPG Key ID: 09D97D153EF94D93
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;