From 018f9785a35b54576fe6cbca2a36ac91219e81fa Mon Sep 17 00:00:00 2001 From: xvlcwk <33735558+xvlcwk@users.noreply.github.com.> Date: Fri, 12 Jan 2024 13:12:36 +0100 Subject: [PATCH] [2][chore] Convert to independently publishable system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update references to allow publishing this as an individual provider.ΓΌ --- README.md | 6 ++---- bitbucket/provider.go | 2 +- docs/index.md | 6 +++--- go.mod | 2 +- main.go | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f3f30cc..e80787e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Bitbucket Server Terraform Provider -[![user guide](https://img.shields.io/badge/-user%20guide-blue)](https://registry.terraform.io/providers/gavinbunney/bitbucketserver/latest) +[![user guide](https://img.shields.io/badge/-user%20guide-blue)](https://registry.terraform.io/providers/xvlcwk-terraform/bitbucketserver/latest) This terraform provider allows management of **Bitbucket Server** resources. The bundled terraform bitbucket provider works only for Bitbucket Cloud. @@ -9,8 +9,6 @@ This terraform provider allows management of **Bitbucket Server** resources. The Download a binary for your system from the release page and remove the `-os-arch` details so you're left with `terraform-provider-bitbucketserver`. Use `chmod +x` to make it executable and then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system. -See [User Guide](https://gavinbunney.github.io/terraform-provider-bitbucketserver) for details on all the provided data and resource types. - ### Example ```hcl @@ -41,7 +39,7 @@ resource "bitbucketserver_repository" "test" { - [Go](https://golang.org/doc/install) 1.11+ - correctly setup [GOPATH](http://golang.org/doc/code.html#GOPATH - add `$GOPATH/bin` to your `$PATH` -- clone this repository to `$GOPATH/src/github.com/gavinbunney/terraform-provider-bitbucketserver` +- clone this repository to `$GOPATH/src/github.com/xvlcwk-terraform/terraform-provider-bitbucketserver` ### Building the provider diff --git a/bitbucket/provider.go b/bitbucket/provider.go index 1c3ac7a..4a11182 100644 --- a/bitbucket/provider.go +++ b/bitbucket/provider.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/gavinbunney/terraform-provider-bitbucketserver/bitbucket/marketplace" + "github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket/marketplace" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/terraform" diff --git a/docs/index.md b/docs/index.md index 3f47bcd..966109a 100755 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ terraform { required_providers { bitbucketserver = { - source = "gavinbunney/bitbucketserver" + source = "xvlcwk-terraform/bitbucketserver" } } } @@ -30,7 +30,7 @@ The following one-liner script will fetch the latest provider version and downlo ```bash $ mkdir -p ~/.terraform.d/plugins && \ - curl -Ls https://api.github.com/repos/gavinbunney/terraform-provider-bitbucketserver/releases/latest \ + curl -Ls https://api.github.com/repos/xvlcwk-terraform/terraform-provider-bitbucketserver/releases/latest \ | jq -r ".assets[] | select(.browser_download_url | contains(\"$(uname -s | tr A-Z a-z)\")) | select(.browser_download_url | contains(\"amd64\")) | .browser_download_url" \ | xargs -n 1 curl -Lo ~/.terraform.d/plugins/terraform-provider-bitbucketserver.zip && \ pushd ~/.terraform.d/plugins/ && \ @@ -44,7 +44,7 @@ $ mkdir -p ~/.terraform.d/plugins && \ #### Install manually -If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases), +If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/releases), then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system. diff --git a/go.mod b/go.mod index 77f184d..8f6b462 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gavinbunney/terraform-provider-bitbucketserver +module github.com/xvlcwk-terraform/terraform-provider-bitbucketserver require github.com/hashicorp/terraform v0.12.2 diff --git a/main.go b/main.go index 6ec47fc..16c5fd8 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/gavinbunney/terraform-provider-bitbucketserver/bitbucket" "github.com/hashicorp/terraform/plugin" + "github.com/xvlcwk-terraform/terraform-provider-bitbucketserver/bitbucket" ) func main() {