From 713c1211433736e0729af192a473f9be5aef78d6 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Mon, 27 Feb 2023 18:35:01 -0500 Subject: [PATCH] chore(enos): Default to use OSS edition (#3035) There was an update to the build scripts to detect what edition of boundary is being built so that it knows which version of the UI to grab. However, this affected instances when building boundary on an architecture that is not the same as the host (in this case, we're building a linux/amd64 version on a mac). When the scripts try to use the built CLI to get the edition, it threw an `exec format error`. --- enos/modules/build_local/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/enos/modules/build_local/main.tf b/enos/modules/build_local/main.tf index 1f987ec8a8..52cdd782c6 100644 --- a/enos/modules/build_local/main.tf +++ b/enos/modules/build_local/main.tf @@ -17,6 +17,10 @@ variable "build_target" { default = "build-ui build" } +variable "edition" { + default = "oss" +} + resource "enos_local_exec" "build" { environment = { "GOOS" = "linux", @@ -24,6 +28,7 @@ resource "enos_local_exec" "build" { "CGO_ENABLED" = 0, "ARTIFACT_PATH" = var.path "BUILD_TARGET" = var.build_target + "EDITION" = var.edition } scripts = ["${path.module}/templates/build.sh"] }