Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84ce4ea

Browse files
authored
chore: update all source URLs for modules to reflect new namespace format (#89)
## Changes made - Updated all `source` properties in Terraform import snippets to use the new namespaced Terraform protocol URLs ## Notes - Probably need to wait until the latest version of the Registry website is pushed to production before we merge this in, just to be on the safe side - I replaced all the paths via a regex, and then double-checked all the files modified to make sure there weren't any false positives
1 parent 31b8312 commit 84ce4ea

File tree

41 files changed

+136
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+136
-129
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ In addition to the general criteria, all README files must have the following:
227227
```tf
228228
module "cursor" {
229229
count = data.coder_workspace.me.start_count
230-
source = "registry.coder.com/modules/cursor/coder"
230+
source = "registry.coder.com/coder/cursor/coder"
231231
version = "1.0.19"
232232
agent_id = coder_agent.example.id
233233
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In both cases, the main README contains a Terraform snippet for integrating the
3737
```tf
3838
module "cursor" {
3939
count = data.coder_workspace.me.start_count
40-
source = "registry.coder.com/modules/cursor/coder"
40+
source = "registry.coder.com/coder/cursor/coder"
4141
version = "1.0.19"
4242
agent_id = coder_agent.example.id
4343
}

cmd/readmevalidation/testSamples/sampleReadmeBody.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Run the [Goose](https://block.github.io/goose/) agent in your workspace to gener
44

55
```tf
66
module "goose" {
7-
source = "registry.coder.com/modules/goose/coder"
7+
source = "registry.coder.com/coder/goose/coder"
88
version = "1.0.31"
99
agent_id = coder_agent.example.id
1010
folder = "/home/coder"
@@ -38,7 +38,7 @@ Your workspace must have `screen` installed to use this.
3838
```tf
3939
module "coder-login" {
4040
count = data.coder_workspace.me.start_count
41-
source = "registry.coder.com/modules/coder-login/coder"
41+
source = "registry.coder.com/coder/coder-login/coder"
4242
version = "1.0.15"
4343
agent_id = coder_agent.example.id
4444
}
@@ -80,7 +80,7 @@ resource "coder_agent" "main" {
8080
8181
module "goose" {
8282
count = data.coder_workspace.me.start_count
83-
source = "registry.coder.com/modules/goose/coder"
83+
source = "registry.coder.com/coder/goose/coder"
8484
version = "1.0.31"
8585
agent_id = coder_agent.example.id
8686
folder = "/home/coder"
@@ -108,7 +108,7 @@ Run Goose as a standalone app in your workspace. This will install Goose and run
108108

109109
```tf
110110
module "goose" {
111-
source = "registry.coder.com/modules/goose/coder"
111+
source = "registry.coder.com/coder/goose/coder"
112112
version = "1.0.31"
113113
agent_id = coder_agent.example.id
114114
folder = "/home/coder"

examples/modules/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tags: [helper]
1414
```tf
1515
module "MODULE_NAME" {
1616
count = data.coder_workspace.me.start_count
17-
source = "registry.coder.com/modules/MODULE_NAME/coder"
17+
source = "registry.coder.com/NAMESPACE/MODULE_NAME/coder"
1818
version = "1.0.2"
1919
}
2020
```
@@ -30,7 +30,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
3030
```tf
3131
module "MODULE_NAME" {
3232
count = data.coder_workspace.me.start_count
33-
source = "registry.coder.com/modules/MODULE_NAME/coder"
33+
source = "registry.coder.com/NAMESPACE/MODULE_NAME/coder"
3434
version = "1.0.2"
3535
agent_id = coder_agent.example.id
3636
extensions = [
@@ -48,7 +48,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
4848
```tf
4949
module "MODULE_NAME" {
5050
count = data.coder_workspace.me.start_count
51-
source = "registry.coder.com/modules/MODULE_NAME/coder"
51+
source = "registry.coder.com/NAMESPACE/MODULE_NAME/coder"
5252
version = "1.0.2"
5353
agent_id = coder_agent.example.id
5454
extensions = ["dracula-theme.theme-dracula"]
@@ -64,7 +64,7 @@ Run code-server in the background, don't fetch it from GitHub:
6464

6565
```tf
6666
module "MODULE_NAME" {
67-
source = "registry.coder.com/modules/MODULE_NAME/coder"
67+
source = "registry.coder.com/NAMESPACE/MODULE_NAME/coder"
6868
version = "1.0.2"
6969
agent_id = coder_agent.example.id
7070
offline = true

registry/coder/modules/amazon-dcv-windows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Enable DCV Server and Web Client on Windows workspaces.
1818
```tf
1919
module "dcv" {
2020
count = data.coder_workspace.me.start_count
21-
source = "registry.coder.com/modules/amazon-dcv-windows/coder"
21+
source = "registry.coder.com/coder/amazon-dcv-windows/coder"
2222
version = "1.0.24"
2323
agent_id = resource.coder_agent.main.id
2424
}

registry/coder/modules/aws-region/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Customize the preselected parameter value:
1717
```tf
1818
module "aws-region" {
1919
count = data.coder_workspace.me.start_count
20-
source = "registry.coder.com/modules/aws-region/coder"
20+
source = "registry.coder.com/coder/aws-region/coder"
2121
version = "1.0.12"
2222
default = "us-east-1"
2323
}
@@ -38,7 +38,7 @@ Change the display name and icon for a region using the corresponding maps:
3838
```tf
3939
module "aws-region" {
4040
count = data.coder_workspace.me.start_count
41-
source = "registry.coder.com/modules/aws-region/coder"
41+
source = "registry.coder.com/coder/aws-region/coder"
4242
version = "1.0.12"
4343
default = "ap-south-1"
4444
@@ -65,7 +65,7 @@ Hide the Asia Pacific regions Seoul and Osaka:
6565
```tf
6666
module "aws-region" {
6767
count = data.coder_workspace.me.start_count
68-
source = "registry.coder.com/modules/aws-region/coder"
68+
source = "registry.coder.com/coder/aws-region/coder"
6969
version = "1.0.12"
7070
exclude = ["ap-northeast-2", "ap-northeast-3"]
7171
}

registry/coder/modules/azure-region/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This module adds a parameter with all Azure regions, allowing developers to sele
1414
```tf
1515
module "azure_region" {
1616
count = data.coder_workspace.me.start_count
17-
source = "registry.coder.com/modules/azure-region/coder"
17+
source = "registry.coder.com/coder/azure-region/coder"
1818
version = "1.0.12"
1919
default = "eastus"
2020
}
@@ -35,7 +35,7 @@ Change the display name and icon for a region using the corresponding maps:
3535
```tf
3636
module "azure-region" {
3737
count = data.coder_workspace.me.start_count
38-
source = "registry.coder.com/modules/azure-region/coder"
38+
source = "registry.coder.com/coder/azure-region/coder"
3939
version = "1.0.12"
4040
custom_names = {
4141
"australia" : "Go Australia!"
@@ -59,7 +59,7 @@ Hide all regions in Australia except australiacentral:
5959
```tf
6060
module "azure-region" {
6161
count = data.coder_workspace.me.start_count
62-
source = "registry.coder.com/modules/azure-region/coder"
62+
source = "registry.coder.com/coder/azure-region/coder"
6363
version = "1.0.12"
6464
exclude = [
6565
"australia",

registry/coder/modules/claude-code/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313

1414
```tf
1515
module "claude-code" {
16-
source = "registry.coder.com/modules/claude-code/coder"
16+
source = "registry.coder.com/coder/claude-code/coder"
1717
version = "1.2.1"
1818
agent_id = coder_agent.example.id
1919
folder = "/home/coder"
@@ -54,7 +54,7 @@ variable "anthropic_api_key" {
5454
5555
module "coder-login" {
5656
count = data.coder_workspace.me.start_count
57-
source = "registry.coder.com/modules/coder-login/coder"
57+
source = "registry.coder.com/coder/coder-login/coder"
5858
version = "1.0.15"
5959
agent_id = coder_agent.example.id
6060
}
@@ -82,7 +82,7 @@ resource "coder_agent" "main" {
8282
8383
module "claude-code" {
8484
count = data.coder_workspace.me.start_count
85-
source = "registry.coder.com/modules/claude-code/coder"
85+
source = "registry.coder.com/coder/claude-code/coder"
8686
version = "1.1.0"
8787
agent_id = coder_agent.example.id
8888
folder = "/home/coder"
@@ -101,7 +101,7 @@ Run Claude Code as a standalone app in your workspace. This will install Claude
101101

102102
```tf
103103
module "claude-code" {
104-
source = "registry.coder.com/modules/claude-code/coder"
104+
source = "registry.coder.com/coder/claude-code/coder"
105105
version = "1.2.1"
106106
agent_id = coder_agent.example.id
107107
folder = "/home/coder"

registry/coder/modules/code-server/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w
1414
```tf
1515
module "code-server" {
1616
count = data.coder_workspace.me.start_count
17-
source = "registry.coder.com/modules/code-server/coder"
17+
source = "registry.coder.com/coder/code-server/coder"
1818
version = "1.1.0"
1919
agent_id = coder_agent.example.id
2020
}
@@ -29,7 +29,7 @@ module "code-server" {
2929
```tf
3030
module "code-server" {
3131
count = data.coder_workspace.me.start_count
32-
source = "registry.coder.com/modules/code-server/coder"
32+
source = "registry.coder.com/coder/code-server/coder"
3333
version = "1.1.0"
3434
agent_id = coder_agent.example.id
3535
install_version = "4.8.3"
@@ -43,7 +43,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/):
4343
```tf
4444
module "code-server" {
4545
count = data.coder_workspace.me.start_count
46-
source = "registry.coder.com/modules/code-server/coder"
46+
source = "registry.coder.com/coder/code-server/coder"
4747
version = "1.1.0"
4848
agent_id = coder_agent.example.id
4949
extensions = [
@@ -61,7 +61,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
6161
```tf
6262
module "code-server" {
6363
count = data.coder_workspace.me.start_count
64-
source = "registry.coder.com/modules/code-server/coder"
64+
source = "registry.coder.com/coder/code-server/coder"
6565
version = "1.1.0"
6666
agent_id = coder_agent.example.id
6767
extensions = ["dracula-theme.theme-dracula"]
@@ -78,7 +78,7 @@ Just run code-server in the background, don't fetch it from GitHub:
7878
```tf
7979
module "code-server" {
8080
count = data.coder_workspace.me.start_count
81-
source = "registry.coder.com/modules/code-server/coder"
81+
source = "registry.coder.com/coder/code-server/coder"
8282
version = "1.1.0"
8383
agent_id = coder_agent.example.id
8484
extensions = ["dracula-theme.theme-dracula", "ms-azuretools.vscode-docker"]
@@ -94,7 +94,7 @@ Run an existing copy of code-server if found, otherwise download from GitHub:
9494
```tf
9595
module "code-server" {
9696
count = data.coder_workspace.me.start_count
97-
source = "registry.coder.com/modules/code-server/coder"
97+
source = "registry.coder.com/coder/code-server/coder"
9898
version = "1.1.0"
9999
agent_id = coder_agent.example.id
100100
use_cached = true
@@ -107,7 +107,7 @@ Just run code-server in the background, don't fetch it from GitHub:
107107
```tf
108108
module "code-server" {
109109
count = data.coder_workspace.me.start_count
110-
source = "registry.coder.com/modules/code-server/coder"
110+
source = "registry.coder.com/coder/code-server/coder"
111111
version = "1.1.0"
112112
agent_id = coder_agent.example.id
113113
offline = true

registry/coder/modules/coder-login/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Automatically logs the user into Coder when creating their workspace.
1414
```tf
1515
module "coder-login" {
1616
count = data.coder_workspace.me.start_count
17-
source = "registry.coder.com/modules/coder-login/coder"
17+
source = "registry.coder.com/coder/coder-login/coder"
1818
version = "1.0.15"
1919
agent_id = coder_agent.example.id
2020
}

registry/coder/modules/cursor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder)
1616
```tf
1717
module "cursor" {
1818
count = data.coder_workspace.me.start_count
19-
source = "registry.coder.com/modules/cursor/coder"
19+
source = "registry.coder.com/coder/cursor/coder"
2020
version = "1.0.19"
2121
agent_id = coder_agent.example.id
2222
}
@@ -29,7 +29,7 @@ module "cursor" {
2929
```tf
3030
module "cursor" {
3131
count = data.coder_workspace.me.start_count
32-
source = "registry.coder.com/modules/cursor/coder"
32+
source = "registry.coder.com/coder/cursor/coder"
3333
version = "1.0.19"
3434
agent_id = coder_agent.example.id
3535
folder = "/home/coder/project"

registry/coder/modules/devcontainers-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The devcontainers-cli module provides an easy way to install [`@devcontainers/cl
1515

1616
```tf
1717
module "devcontainers-cli" {
18-
source = "registry.coder.com/modules/devcontainers-cli/coder"
18+
source = "registry.coder.com/coder/devcontainers-cli/coder"
1919
version = "1.0.3"
2020
agent_id = coder_agent.example.id
2121
}

registry/coder/modules/dotfiles/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Under the hood, this module uses the [coder dotfiles](https://coder.com/docs/v2/
1818
```tf
1919
module "dotfiles" {
2020
count = data.coder_workspace.me.start_count
21-
source = "registry.coder.com/modules/dotfiles/coder"
21+
source = "registry.coder.com/coder/dotfiles/coder"
2222
version = "1.0.29"
2323
agent_id = coder_agent.example.id
2424
}
@@ -31,7 +31,7 @@ module "dotfiles" {
3131
```tf
3232
module "dotfiles" {
3333
count = data.coder_workspace.me.start_count
34-
source = "registry.coder.com/modules/dotfiles/coder"
34+
source = "registry.coder.com/coder/dotfiles/coder"
3535
version = "1.0.29"
3636
agent_id = coder_agent.example.id
3737
}
@@ -42,7 +42,7 @@ module "dotfiles" {
4242
```tf
4343
module "dotfiles" {
4444
count = data.coder_workspace.me.start_count
45-
source = "registry.coder.com/modules/dotfiles/coder"
45+
source = "registry.coder.com/coder/dotfiles/coder"
4646
version = "1.0.29"
4747
agent_id = coder_agent.example.id
4848
user = "root"
@@ -54,14 +54,14 @@ module "dotfiles" {
5454
```tf
5555
module "dotfiles" {
5656
count = data.coder_workspace.me.start_count
57-
source = "registry.coder.com/modules/dotfiles/coder"
57+
source = "registry.coder.com/coder/dotfiles/coder"
5858
version = "1.0.29"
5959
agent_id = coder_agent.example.id
6060
}
6161
6262
module "dotfiles-root" {
6363
count = data.coder_workspace.me.start_count
64-
source = "registry.coder.com/modules/dotfiles/coder"
64+
source = "registry.coder.com/coder/dotfiles/coder"
6565
version = "1.0.29"
6666
agent_id = coder_agent.example.id
6767
user = "root"
@@ -76,7 +76,7 @@ You can set a default dotfiles repository for all users by setting the `default_
7676
```tf
7777
module "dotfiles" {
7878
count = data.coder_workspace.me.start_count
79-
source = "registry.coder.com/modules/dotfiles/coder"
79+
source = "registry.coder.com/coder/dotfiles/coder"
8080
version = "1.0.29"
8181
agent_id = coder_agent.example.id
8282
default_dotfiles_uri = "https://github.com/coder/dotfiles"

registry/coder/modules/filebrowser/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A file browser for your workspace.
1414
```tf
1515
module "filebrowser" {
1616
count = data.coder_workspace.me.start_count
17-
source = "registry.coder.com/modules/filebrowser/coder"
17+
source = "registry.coder.com/coder/filebrowser/coder"
1818
version = "1.0.31"
1919
agent_id = coder_agent.example.id
2020
}
@@ -29,7 +29,7 @@ module "filebrowser" {
2929
```tf
3030
module "filebrowser" {
3131
count = data.coder_workspace.me.start_count
32-
source = "registry.coder.com/modules/filebrowser/coder"
32+
source = "registry.coder.com/coder/filebrowser/coder"
3333
version = "1.0.31"
3434
agent_id = coder_agent.example.id
3535
folder = "/home/coder/project"
@@ -41,7 +41,7 @@ module "filebrowser" {
4141
```tf
4242
module "filebrowser" {
4343
count = data.coder_workspace.me.start_count
44-
source = "registry.coder.com/modules/filebrowser/coder"
44+
source = "registry.coder.com/coder/filebrowser/coder"
4545
version = "1.0.31"
4646
agent_id = coder_agent.example.id
4747
database_path = ".config/filebrowser.db"
@@ -53,7 +53,7 @@ module "filebrowser" {
5353
```tf
5454
module "filebrowser" {
5555
count = data.coder_workspace.me.start_count
56-
source = "registry.coder.com/modules/filebrowser/coder"
56+
source = "registry.coder.com/coder/filebrowser/coder"
5757
version = "1.0.31"
5858
agent_id = coder_agent.example.id
5959
agent_name = "main"

0 commit comments

Comments
 (0)