Skip to content

Commit a44f017

Browse files
committed
docs: switch provider source to 45ck/discord
1 parent 19e735d commit a44f017

8 files changed

Lines changed: 24 additions & 11 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body:
2020
id: provider_version
2121
attributes:
2222
label: Provider version
23-
placeholder: "Chaotic-Logic/discord vX.Y.Z"
23+
placeholder: "45ck/discord vX.Y.Z"
2424
validations:
2525
required: true
2626

@@ -56,4 +56,3 @@ body:
5656
render: text
5757
validations:
5858
required: true
59-

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HOSTNAME?=registry.terraform.io
55

66
# If you publish under a different namespace, override this when invoking make:
77
# `make install NAMESPACE=YourOrg`
8-
NAMESPACE?=Chaotic-Logic
8+
NAMESPACE?=45ck
99

1010
NAME?=discord
1111
BINARY?=terraform-provider-${NAME}

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a fork of [aequasi/terraform-provider-discord](https://github.com/aequasi/terraform-provider-discord). We ran into some problems with this provider and decided to fix them with this opinionated version.
44

5-
https://registry.terraform.io/providers/Chaotic-Logic/discord/latest
5+
https://registry.terraform.io/providers/45ck/discord/latest
66

77
Note: this fork serves the provider over Terraform plugin protocol v6, which requires Terraform CLI 1.0+.
88

@@ -24,6 +24,16 @@ The Go module path for this repo is `github.com/45ck/terraform-provider-discord`
2424

2525
This does not affect Terraform provider installation (which uses the provider source address in your Terraform configuration).
2626

27+
## Provider Source Address
28+
29+
The Terraform Registry source address for this provider is `45ck/discord`.
30+
31+
If you are migrating from another fork (for example `Chaotic-Logic/discord`), you can update existing state with:
32+
33+
```sh
34+
terraform state replace-provider registry.terraform.io/Chaotic-Logic/discord registry.terraform.io/45ck/discord
35+
```
36+
2737
## License
2838

2939
GPL-3.0 (see `LICENSE`).

examples/admin_no_clickops/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
discord = {
4-
source = "Chaotic-Logic/discord"
4+
source = "45ck/discord"
55
version = ">= 0.0.0"
66
}
77
}
@@ -98,4 +98,4 @@ resource "discord_soundboard_sound" "ping" {
9898
resource "discord_widget_settings" "this" {
9999
server_id = var.server_id
100100
enabled = false
101-
}
101+
}

examples/api_resource_widget/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
discord = {
4-
source = "Chaotic-Logic/discord"
4+
source = "45ck/discord"
55
version = ">= 0.0.0"
66
}
77
}
@@ -31,3 +31,4 @@ resource "discord_api_resource" "guild_widget" {
3131
delete_method = "SKIP"
3232
}
3333

34+

examples/full_server/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
discord = {
4-
source = "Chaotic-Logic/discord"
4+
source = "45ck/discord"
55
version = ">= 0.0.0"
66
}
77
}
@@ -87,3 +87,4 @@ resource "discord_welcome_screen" "main" {
8787
emoji_name = "📜"
8888
}
8989
}
90+

examples/guild_settings/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
discord = {
4-
source = "Chaotic-Logic/discord"
4+
source = "45ck/discord"
55
version = ">= 0.0.0"
66
}
77
}
@@ -27,3 +27,4 @@ resource "discord_guild_settings" "this" {
2727
reason = "Terraform: set baseline guild settings"
2828
}
2929

30+

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ func main() {
1414

1515
discord.SetBuildVersion(version)
1616

17-
// Address can be any stable string; it is used for Terraform CLI dev overrides and debugging.
18-
const address = "registry.terraform.io/Chaotic-Logic/discord"
17+
// Address should match the Terraform Registry source address users configure in required_providers.
18+
// It is also used for Terraform CLI dev overrides and debugging.
19+
const address = "registry.terraform.io/45ck/discord"
1920
if err := providerserver.Serve(ctx, fw.New(version), providerserver.ServeOpts{Address: address}); err != nil {
2021
log.Fatalf("failed to serve provider: %v", err)
2122
}

0 commit comments

Comments
 (0)