From a0af8f469bfcf582e9eebbc60f223d7554df6f8b 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 a82a4ad0aa..65bdf1d45b 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