From 463db7d10f4b61d4241a5d1b964e4fe8a33c53f0 Mon Sep 17 00:00:00 2001 From: Mohammed Uzair Date: Wed, 29 Oct 2025 22:37:07 -0500 Subject: [PATCH 1/3] explicitly require hashicorp external provider --- registry/coder-labs/modules/sourcegraph-amp/main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/registry/coder-labs/modules/sourcegraph-amp/main.tf b/registry/coder-labs/modules/sourcegraph-amp/main.tf index ddaa475d6..aac6c990d 100644 --- a/registry/coder-labs/modules/sourcegraph-amp/main.tf +++ b/registry/coder-labs/modules/sourcegraph-amp/main.tf @@ -6,7 +6,12 @@ terraform { source = "coder/coder" version = ">= 2.7" } + external = { + source = "hashicorp/external" + version = "2.3.5" + } } + } variable "agent_id" { From 90ae4f205140985d24b0a1e4c5f195dc38712099 Mon Sep 17 00:00:00 2001 From: Mohammed Uzair Date: Wed, 29 Oct 2025 22:37:31 -0500 Subject: [PATCH 2/3] bun fmt ran successfully --- registry/coder-labs/modules/sourcegraph-amp/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/coder-labs/modules/sourcegraph-amp/main.tf b/registry/coder-labs/modules/sourcegraph-amp/main.tf index aac6c990d..fc36ea8d3 100644 --- a/registry/coder-labs/modules/sourcegraph-amp/main.tf +++ b/registry/coder-labs/modules/sourcegraph-amp/main.tf @@ -7,7 +7,7 @@ terraform { version = ">= 2.7" } external = { - source = "hashicorp/external" + source = "hashicorp/external" version = "2.3.5" } } From 1ff5e2454743b4de1f51744eb1b04df5b3ededb9 Mon Sep 17 00:00:00 2001 From: Mohammed Uzair Date: Wed, 29 Oct 2025 22:31:16 -0500 Subject: [PATCH 3/3] chore: bump module versions (patch) --- registry/coder-labs/modules/sourcegraph-amp/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder-labs/modules/sourcegraph-amp/README.md b/registry/coder-labs/modules/sourcegraph-amp/README.md index 5a5039f00..608defd60 100644 --- a/registry/coder-labs/modules/sourcegraph-amp/README.md +++ b/registry/coder-labs/modules/sourcegraph-amp/README.md @@ -13,7 +13,7 @@ Run [Amp CLI](https://ampcode.com/) in your workspace to access Sourcegraph's AI ```tf module "amp-cli" { source = "registry.coder.com/coder-labs/sourcegraph-amp/coder" - version = "2.0.0" + version = "2.0.1" agent_id = coder_agent.example.id sourcegraph_amp_api_key = var.sourcegraph_amp_api_key install_sourcegraph_amp = true @@ -48,7 +48,7 @@ variable "amp_api_key" { module "amp-cli" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder-labs/sourcegraph-amp/coder" - amp_version = "2.0.0" + amp_version = "2.0.1" agent_id = coder_agent.example.id amp_api_key = var.amp_api_key # recommended for tasks usage workdir = "/home/coder/project"