Skip to content

Commit 93e6094

Browse files
authored
fix: rename add-project to add_project in mux module (#765)
Terraform variable names should use underscores, not hyphens. Renames the `add-project` variable to `add_project` in the mux module. **Changes:** - `main.tf`: Renamed variable declaration and references - `README.md`: Updated example usage Bumped version: 1.3.0 → 1.3.1 --- Generated with [Mux](https://mux.coder.com) using Claude
1 parent 6ec506e commit 93e6094

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

registry/coder/modules/mux/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Automatically install and run [Mux](https://github.com/coder/mux) in a Coder wor
1414
module "mux" {
1515
count = data.coder_workspace.me.start_count
1616
source = "registry.coder.com/coder/mux/coder"
17-
version = "1.3.0"
17+
version = "1.3.1"
1818
agent_id = coder_agent.main.id
1919
}
2020
```
@@ -37,7 +37,7 @@ module "mux" {
3737
module "mux" {
3838
count = data.coder_workspace.me.start_count
3939
source = "registry.coder.com/coder/mux/coder"
40-
version = "1.3.0"
40+
version = "1.3.1"
4141
agent_id = coder_agent.main.id
4242
}
4343
```
@@ -48,7 +48,7 @@ module "mux" {
4848
module "mux" {
4949
count = data.coder_workspace.me.start_count
5050
source = "registry.coder.com/coder/mux/coder"
51-
version = "1.3.0"
51+
version = "1.3.1"
5252
agent_id = coder_agent.main.id
5353
# Default is "latest"; set to a specific version to pin
5454
install_version = "0.4.0"
@@ -63,9 +63,9 @@ Start Mux with `mux server --add-project /path/to/project`:
6363
module "mux" {
6464
count = data.coder_workspace.me.start_count
6565
source = "registry.coder.com/coder/mux/coder"
66-
version = "1.3.0"
66+
version = "1.3.1"
6767
agent_id = coder_agent.main.id
68-
add-project = "/path/to/project"
68+
add_project = "/path/to/project"
6969
}
7070
```
7171

@@ -78,7 +78,7 @@ The module parses quoted values, so grouped arguments remain intact.
7878
module "mux" {
7979
count = data.coder_workspace.me.start_count
8080
source = "registry.coder.com/coder/mux/coder"
81-
version = "1.3.0"
81+
version = "1.3.1"
8282
agent_id = coder_agent.main.id
8383
additional_arguments = "--open-mode pinned --add-project '/workspaces/my repo'"
8484
}
@@ -90,7 +90,7 @@ module "mux" {
9090
module "mux" {
9191
count = data.coder_workspace.me.start_count
9292
source = "registry.coder.com/coder/mux/coder"
93-
version = "1.3.0"
93+
version = "1.3.1"
9494
agent_id = coder_agent.main.id
9595
port = 8080
9696
}
@@ -104,7 +104,7 @@ Force a specific package manager instead of auto-detection:
104104
module "mux" {
105105
count = data.coder_workspace.me.start_count
106106
source = "registry.coder.com/coder/mux/coder"
107-
version = "1.3.0"
107+
version = "1.3.1"
108108
agent_id = coder_agent.main.id
109109
package_manager = "pnpm" # or "npm", "bun"
110110
}
@@ -118,7 +118,7 @@ Use a private or mirrored npm registry:
118118
module "mux" {
119119
count = data.coder_workspace.me.start_count
120120
source = "registry.coder.com/coder/mux/coder"
121-
version = "1.3.0"
121+
version = "1.3.1"
122122
agent_id = coder_agent.main.id
123123
registry_url = "https://npm.pkg.github.com"
124124
}
@@ -132,7 +132,7 @@ Run an existing copy of Mux if found, otherwise install from npm:
132132
module "mux" {
133133
count = data.coder_workspace.me.start_count
134134
source = "registry.coder.com/coder/mux/coder"
135-
version = "1.3.0"
135+
version = "1.3.1"
136136
agent_id = coder_agent.main.id
137137
use_cached = true
138138
}
@@ -146,7 +146,7 @@ Run without installing from the network (requires Mux to be pre-installed):
146146
module "mux" {
147147
count = data.coder_workspace.me.start_count
148148
source = "registry.coder.com/coder/mux/coder"
149-
version = "1.3.0"
149+
version = "1.3.1"
150150
agent_id = coder_agent.main.id
151151
install = false
152152
}

registry/coder/modules/mux/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "log_path" {
4949
default = "/tmp/mux.log"
5050
}
5151

52-
variable "add-project" {
52+
variable "add_project" {
5353
type = string
5454
description = "Optional path to add/open as a project in Mux on startup."
5555
default = null
@@ -165,7 +165,7 @@ resource "coder_script" "mux" {
165165
VERSION : var.install_version,
166166
PORT : var.port,
167167
LOG_PATH : var.log_path,
168-
ADD_PROJECT : var.add-project == null ? "" : var.add-project,
168+
ADD_PROJECT : var.add_project == null ? "" : var.add_project,
169169
ADDITIONAL_ARGUMENTS : var.additional_arguments,
170170
INSTALL_PREFIX : var.install_prefix,
171171
OFFLINE : !var.install,

0 commit comments

Comments
 (0)