diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-09 15:54:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 15:54:28 +0100 |
commit | c996d9f11ea1b480e7041426b70878ca75fc5519 (patch) | |
tree | 05baa42de51391eaf95beab34b41099efac7d51f | |
parent | d4953c0185dc467517cc52ebcb99a62a8e26a84b (diff) | |
parent | d0b502fceabe0c98a3d2392af6ddb241b80dea61 (diff) | |
download | podman-c996d9f11ea1b480e7041426b70878ca75fc5519.tar.gz podman-c996d9f11ea1b480e7041426b70878ca75fc5519.tar.bz2 podman-c996d9f11ea1b480e7041426b70878ca75fc5519.zip |
Merge pull request #12235 from saschagrunert/fix-static-build
Exclude already built sources for static build
-rw-r--r-- | nix/default-arm64.nix | 3 | ||||
-rw-r--r-- | nix/default.nix | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nix/default-arm64.nix b/nix/default-arm64.nix index bb958a193..fa076f27d 100644 --- a/nix/default-arm64.nix +++ b/nix/default-arm64.nix @@ -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; diff --git a/nix/default.nix b/nix/default.nix index 1dc6f92b6..30ae21503 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -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; |