From 032d4ce0f2f9730b16a730c3a9feca1340b8500e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 14:01:03 +0100 Subject: [PATCH] backport of commit c294cabe13f28a94cb82a8c63b2e30bdfdd1aecb (#37308) Co-authored-by: Samsondeen Dare --- internal/command/e2etest/terraform_query_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/command/e2etest/terraform_query_test.go b/internal/command/e2etest/terraform_query_test.go index 4004306131..77746822a2 100644 --- a/internal/command/e2etest/terraform_query_test.go +++ b/internal/command/e2etest/terraform_query_test.go @@ -25,6 +25,15 @@ import ( ) func TestUnmanagedQuery(t *testing.T) { + if !canRunGoBuild { + // We're running in a separate-build-then-run context, so we can't + // currently execute this test which depends on being able to build + // new executable at runtime. + // + // (See the comment on canRunGoBuild's declaration for more information.) + t.Skip("can't run without building a new provider executable") + } + t.Parallel() tests := []struct {