From cd759bd9a11bf18a1102e42acd3f5224cf0ab022 Mon Sep 17 00:00:00 2001 From: Hulto <7121375+hulto@users.noreply.github.com> Date: Wed, 15 Oct 2025 08:44:18 -0400 Subject: [PATCH] goose module: pass folder along to agentapi (#412) Co-authored-by: DevCats --- registry/coder/modules/goose/README.md | 4 ++-- registry/coder/modules/goose/main.tf | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/goose/README.md b/registry/coder/modules/goose/README.md index 6e7a0c9c..f4f91ab5 100644 --- a/registry/coder/modules/goose/README.md +++ b/registry/coder/modules/goose/README.md @@ -13,7 +13,7 @@ Run the [Goose](https://block.github.io/goose/) agent in your workspace to gener ```tf module "goose" { source = "registry.coder.com/coder/goose/coder" - version = "2.2.0" + version = "2.2.1" agent_id = coder_agent.example.id folder = "/home/coder" install_goose = true @@ -79,7 +79,7 @@ resource "coder_agent" "main" { module "goose" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/goose/coder" - version = "2.2.0" + version = "2.2.1" agent_id = coder_agent.example.id folder = "/home/coder" install_goose = true diff --git a/registry/coder/modules/goose/main.tf b/registry/coder/modules/goose/main.tf index 09fc966c..51f8b6d6 100644 --- a/registry/coder/modules/goose/main.tf +++ b/registry/coder/modules/goose/main.tf @@ -135,6 +135,7 @@ EOT install_script = file("${path.module}/scripts/install.sh") start_script = file("${path.module}/scripts/start.sh") module_dir_name = ".goose-module" + folder = trimsuffix(var.folder, "/") } module "agentapi" { @@ -156,6 +157,7 @@ module "agentapi" { pre_install_script = var.pre_install_script post_install_script = var.post_install_script start_script = local.start_script + folder = local.folder install_script = <<-EOT #!/bin/bash set -o errexit