From ca9e14e46092a606c42ce44785c423c26b53ef58 Mon Sep 17 00:00:00 2001 From: alienc0der <118136375+alienc0der@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:11:08 +0200 Subject: [PATCH] cicd: added buildFlags --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 3db42a2bde..32a0df7046 100644 --- a/default.nix +++ b/default.nix @@ -53,7 +53,7 @@ buildGoApplication rec { modules = ./gomod2nix.toml; pwd = src; # needed to support replace subPackages = [ "cmd/cronosd" ]; - buildFlags = lib.optionalString coverage "-cover"; + buildFlags = [ "-mod=mod" ] ++ lib.optionalString coverage "-cover"; CGO_ENABLED = "1"; CGO_LDFLAGS = lib.optionalString (rocksdb != null) ( if static then