From b32b43e1f64ff1d8f7cfe30178f3f2f37f9d717e Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Wed, 6 Mar 2024 17:26:59 +0100 Subject: [PATCH] cli: fix embedding of policy hash The definition of the default policy hash was moved, but the -X argument for the go build was not changed accordingly. --- packages/by-name/cli-release/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/by-name/cli-release/package.nix b/packages/by-name/cli-release/package.nix index a82a4ad0a..65bdf1d45 100644 --- a/packages/by-name/cli-release/package.nix +++ b/packages/by-name/cli-release/package.nix @@ -12,6 +12,6 @@ ''; ldflags = previousAttrs.ldflags ++ [ - "-X main.DefaultCoordinatorPolicyHash=${builtins.readFile ../../../cli/cmd/assets/coordinator-policy-hash}" + "-X github.com/edgelesssys/contrast/cli/cmd.DefaultCoordinatorPolicyHash=${builtins.readFile ../../../cli/cmd/assets/coordinator-policy-hash}" ]; })).cli