From fd3a2a1f0f690eda18e3df991113dbf7612671ec Mon Sep 17 00:00:00 2001 From: James Shubin Date: Tue, 3 Sep 2024 20:26:38 -0400 Subject: [PATCH] engine: resources: Make consul optional Licensing has made this non-free. Let's put that behind a build tag for now, and remove it entirely if no suitable libre replacement is found. --- engine/resources/consul_kv.go | 2 ++ engine/resources/consul_kv_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/resources/consul_kv.go b/engine/resources/consul_kv.go index 82bd08da8..29d914c7b 100644 --- a/engine/resources/consul_kv.go +++ b/engine/resources/consul_kv.go @@ -27,6 +27,8 @@ // additional permission if he deems it necessary to achieve the goals of this // additional permission. +//go:build !noconsul + package resources import ( diff --git a/engine/resources/consul_kv_test.go b/engine/resources/consul_kv_test.go index ea3eb9885..3bdd01e08 100644 --- a/engine/resources/consul_kv_test.go +++ b/engine/resources/consul_kv_test.go @@ -27,7 +27,7 @@ // additional permission if he deems it necessary to achieve the goals of this // additional permission. -//go:build !root +//go:build !root || !noconsul package resources