Skip to content

Commit

Permalink
Exclude already built sources for static build
Browse files Browse the repository at this point in the history
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 containers#12198

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Nov 9, 2021
1 parent 3ccd999 commit d0b502f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nix/default-arm64.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d0b502f

Please sign in to comment.