Skip to content

Commit

Permalink
migrate to new repo ref
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-stupka committed Sep 3, 2024
1 parent b8b18d7 commit aee3e65
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ generate:
go fmt

build:
go build -o ~/.terraform.d/plugins/github.com/glueckkanja-gab/aztools/0.1.0/linux_amd64/terraform-provider-aztools
go build -o ${GOBIN}/terraform-provider-aztools

test: generate build
cd ./examples && rm -f .terraform.lock.hcl && terraform init -upgrade && TF_REATTACH_PROVIDERS='{"registry.terraform.io/my-org/my-provider":{"Protocol":"grpc","Pid":3382870,"Test":true,"Addr":{"Network":"unix","String":"/tmp/plugin713096927"}}}' terraform apply -auto-approve
cd ./examples && rm -f .terraform.lock.hcl && terraform init -upgrade && terraform apply -auto-approve

plan: generate build
cd ./examples && rm -f .terraform.lock.hcl && terraform init -upgrade && terraform plan
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Requirements
Using the provider
----------------------

See [Terraform Registry](https://registry.terraform.io/providers/glueckkanja-gab/aztools/latest).
See [Terraform Registry](https://registry.terraform.io/providers/glueckkanja/aztools/latest).

Building The Provider
---------------------

1. Clone the repository
1. Install 'Remote Containers' VS Code Extension
1. Build the provider using the `make` command:
1. Build the provider using the `make` command:
```sh
$ make build
```
Expand All @@ -30,7 +30,7 @@ Developing the Provider

1. Clone the repository
1. Install 'Remote Containers' VS Code Extension
1. Build & test the provider using the `make` command:
1. Build & test the provider using the `make` command:
```sh
$ make
```
6 changes: 3 additions & 3 deletions examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
// source = "hashicorp/azurerm"
//}
aztools = {
source = "github.com/glueckkanja-gab/aztools"
source = "github.com/glueckkanja/aztools"
}
}
}
Expand All @@ -24,7 +24,7 @@ provider "aztools" {
convention = "default"
lowercase = true
schema_naming_path = "./naming_schema/schema.naming.json"
# schema_naming_url = "https://raw.githubusercontent.com/glueckkanja-gab/terraform-provider-aztools/main/examples/naming_schema/schema.naming.json"
# schema_naming_url = "https://raw.githubusercontent.com/glueckkanja/terraform-provider-aztools/main/examples/naming_schema/schema.naming.json"
schema_locations_path = "./naming_schema/schema.locations.json"
# schema_locations_url = "https://raw.githubusercontent.com/glueckkanja-gab/terraform-provider-aztools/main/examples/naming_schema/schema.locations.json"
# schema_locations_url = "https://raw.githubusercontent.com/glueckkanja/terraform-provider-aztools/main/examples/naming_schema/schema.locations.json"
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/glueckkanja-gab/terraform-provider-aztools
module github.com/glueckkanja/terraform-provider-aztools

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"os"

"github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider/models"
"github.com/glueckkanja/terraform-provider-aztools/internal/provider/models"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/mitchellh/go-homedir"
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/resource_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"strings"

"github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider/common"
"github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider/models"
"github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider/validate"
"github.com/glueckkanja/terraform-provider-aztools/internal/provider/common"
"github.com/glueckkanja/terraform-provider-aztools/internal/provider/models"
"github.com/glueckkanja/terraform-provider-aztools/internal/provider/validate"
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"log"

"github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider"
"github.com/glueckkanja/terraform-provider-aztools/internal/provider"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
)

Expand All @@ -25,7 +25,7 @@ func main() {
flag.Parse()

if debugMode {
err := plugin.Debug(context.Background(), "github.com/glueckkanja-gab/terraform-provider-aztools/internal/provider",
err := plugin.Debug(context.Background(), "github.com/glueckkanja/terraform-provider-aztools/internal/provider",
&plugin.ServeOpts{
ProviderFunc: provider.AzTools(version),
})
Expand Down

0 comments on commit aee3e65

Please sign in to comment.