Skip to content

Commit cd759bd

Browse files
goose module: pass folder along to agentapi (#412)
Co-authored-by: DevCats <christofer@coder.com>
1 parent 54a7bb0 commit cd759bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

registry/coder/modules/goose/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Goose](https://block.github.io/goose/) agent in your workspace to gener
1313
```tf
1414
module "goose" {
1515
source = "registry.coder.com/coder/goose/coder"
16-
version = "2.2.0"
16+
version = "2.2.1"
1717
agent_id = coder_agent.example.id
1818
folder = "/home/coder"
1919
install_goose = true
@@ -79,7 +79,7 @@ resource "coder_agent" "main" {
7979
module "goose" {
8080
count = data.coder_workspace.me.start_count
8181
source = "registry.coder.com/coder/goose/coder"
82-
version = "2.2.0"
82+
version = "2.2.1"
8383
agent_id = coder_agent.example.id
8484
folder = "/home/coder"
8585
install_goose = true

registry/coder/modules/goose/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ EOT
135135
install_script = file("${path.module}/scripts/install.sh")
136136
start_script = file("${path.module}/scripts/start.sh")
137137
module_dir_name = ".goose-module"
138+
folder = trimsuffix(var.folder, "/")
138139
}
139140

140141
module "agentapi" {
@@ -156,6 +157,7 @@ module "agentapi" {
156157
pre_install_script = var.pre_install_script
157158
post_install_script = var.post_install_script
158159
start_script = local.start_script
160+
folder = local.folder
159161
install_script = <<-EOT
160162
#!/bin/bash
161163
set -o errexit

0 commit comments

Comments
 (0)