filter sources to avoid rebuild on each test
Albatros default Details

This commit is contained in:
Quentin 2023-05-04 16:05:11 +02:00
parent b16e51219a
commit 6691d52fac
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,11 @@
albatrosProject = (pkgs.buildGoModule rec {
pname = "albatros-go-module";
version = albaVersion;
src = ./.;
src = builtins.path {
path = ./.;
name = "albatros-source";
filter = (path: type: type == "directory" || (builtins.match ".*\\.(go|sum|mod)" path) != null);
};
CGO_ENABLED = 0;
vendorSha256 = "sha256-KYjXb882jWLFO6zilQXlrZorL9tw/+6njQNkB6E9Er4=";
dontCheck=true;