From 47ffd2211e7298d9708dc5d4d33d6f89eb000304 Mon Sep 17 00:00:00 2001 From: Lena Garber Date: Tue, 28 Mar 2023 09:51:32 -0400 Subject: [PATCH 1/3] Make initial changes for repo transfer --- .circleci/config.yml | 10 +++++----- .github/CONTRIBUTING.md | 12 ++++++------ .github/PULL_REQUEST_TEMPLATE.md | 2 +- README.md | 4 ++-- builder/linode/linode.go | 2 +- docs/README.md | 4 ++-- go.mod | 3 +-- go.sum | 3 +-- main.go | 4 ++-- 9 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b59aafe..fb643e20 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,13 +35,13 @@ jobs: GOOS: linux build_windows: executor: golang - working_directory: ~/go/src/github.com/hashicorp/packer-plugin-linode + working_directory: ~/go/src/github.com/linode/packer-plugin-linode steps: - build-and-persist-plugin-binary: GOOS: windows build_darwin: executor: golang - working_directory: ~/go/src/github.com/hashicorp/packer-plugin-linode + working_directory: ~/go/src/github.com/linode/packer-plugin-linode steps: - build-and-persist-plugin-binary: GOOS: darwin @@ -50,19 +50,19 @@ jobs: GOARCH: arm64 build_freebsd: executor: golang - working_directory: ~/go/src/github.com/hashicorp/packer-plugin-linode + working_directory: ~/go/src/github.com/linode/packer-plugin-linode steps: - build-and-persist-plugin-binary: GOOS: freebsd build_solaris: executor: golang - working_directory: ~/go/src/github.com/hashicorp/packer-plugin-linode + working_directory: ~/go/src/github.com/linode/packer-plugin-linode steps: - build-and-persist-plugin-binary: GOOS: solaris build_openbsd: executor: golang - working_directory: ~/go/src/github.com/hashicorp/packer-plugin-linode + working_directory: ~/go/src/github.com/linode/packer-plugin-linode steps: - build-and-persist-plugin-binary: GOOS: openbsd diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4c110f0a..ec4312b3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -76,16 +76,16 @@ POSIX-like environments (macOS, Linux, Cygwin, etc.) so you may need to adjust them for Windows or other shells. 1. Download the Linode plugin source (and its dependencies) by running - `go get github.com/hashicorp/packer-plugin-linode`. This will download the source to - `$GOPATH/src/github.com/hashicorp/packer-plugin-linode`. + `go get github.com/linode/packer-plugin-linode`. This will download the source to + `$GOPATH/src/github.com/linode/packer-plugin-linode`. -2. When working on the Linode plugin, first `cd $GOPATH/src/github.com/hashicorp/packer-plugin-linode` +2. When working on the Linode plugin, first `cd $GOPATH/src/github.com/linode/packer-plugin-linode` so you can run `make dev` and easily access other files. `make dev` will build the packer-plugin-linode binary and install it under `$HOME/.packer.d/plugins/`. 3. Make your changes to the Linode plugin source. You can run `make dev` to build and install locally, and `make test` to run unit tests. Any compilation errors will be shown when the binaries are rebuilding. If you don't have `make` you can simply run `go build -o packer-plugin-linode` from the project root, and `mv packer-plugin-linode ~/.packer.d/plugins/packer-plugin-linode` to install the plugin. -4. After building the Linode plugin successfully, use the latest version of Packer to build a machine and verify your changes. In the [example folder](https://github.com/hashicorp/packer-plugin-linode/blob/main/example) we provide a basic template. Comment out the `packer {}` block to force Packer use the development binary installed in the previous step. +4. After building the Linode plugin successfully, use the latest version of Packer to build a machine and verify your changes. In the [example folder](https://github.com/linode/packer-plugin-linode/blob/main/example) we provide a basic template. Comment out the `packer {}` block to force Packer use the development binary installed in the previous step. 5. If everything works well and the tests pass, run `go fmt ./...` on your code before submitting a pull-request. @@ -94,7 +94,7 @@ adjust them for Windows or other shells. ### Opening a Pull Request Thank you for contributing! When you are ready to open a pull-request, you will -need to [fork the Linode plugin](https://github.com/hashicorp/packer-plugin-linode#fork-destination-box), push your +need to [fork the Linode plugin](https://github.com/linode/packer-plugin-linode#fork-destination-box), push your changes to your fork, and then open a pull-request. For example, my github username is `myuser`, so I would do the following: @@ -185,7 +185,7 @@ project. After following the steps in "Setting up Go to work on the Linode plugi 1. Navigate to the code: - `cd $GOPATH/src/github.com/hashicorp/packer-plugin-linode` + `cd $GOPATH/src/github.com/linode/packer-plugin-linode` 2. Add the remote by running: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 679a6888..05e28df1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,7 +4,7 @@ In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a PR, and understand the lifecycle of a Packer Plugin PR: -https://github.com/hashicorp/packer-plugin-linode/blob/main/.github/CONTRIBUTING.md#opening-an-pull-request +https://github.com/linode/packer-plugin-linode/blob/main/.github/CONTRIBUTING.md#opening-an-pull-request Describe the change you are making here! diff --git a/README.md b/README.md index 723ace78..aeb01119 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ packer { required_plugins { linode = { version = ">= 1.0.2" - source = "github.com/hashicorp/linode" + source = "github.com/linode/linode" } } } @@ -29,7 +29,7 @@ packer { #### Manual installation -You can find pre-built binary releases of the plugin [here](https://github.com/hashicorp/packer-plugin-linode/releases). +You can find pre-built binary releases of the plugin [here](https://github.com/linode/packer-plugin-linode/releases). Once you have downloaded the latest archive corresponding to your target OS, uncompress it to retrieve the plugin binary file corresponding to your platform. To install the plugin, please follow the Packer documentation on diff --git a/builder/linode/linode.go b/builder/linode/linode.go index d6319f7c..58c61997 100644 --- a/builder/linode/linode.go +++ b/builder/linode/linode.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/hashicorp/packer-plugin-linode/version" + "github.com/linode/packer-plugin-linode/version" "github.com/linode/linodego" "golang.org/x/oauth2" ) diff --git a/docs/README.md b/docs/README.md index 2febba1b..5aef19b6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -20,7 +20,7 @@ packer { required_plugins { linode = { version = ">= 1.0.1" - source = "github.com/hashicorp/linode" + source = "github.com/linode/linode" } } } @@ -28,7 +28,7 @@ packer { #### Manual installation -You can find pre-built binary releases of the plugin [here](https://github.com/hashicorp/packer-plugin-linode/releases). +You can find pre-built binary releases of the plugin [here](https://github.com/linode/packer-plugin-linode/releases). Once you have downloaded the latest archive corresponding to your target OS, uncompress it to retrieve the plugin binary file corresponding to your platform. To install the plugin, please follow the Packer documentation on diff --git a/go.mod b/go.mod index e2239c56..728ef871 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/hashicorp/packer-plugin-linode +module github.com/linode/packer-plugin-linode go 1.18 @@ -93,5 +93,4 @@ require ( google.golang.org/grpc v1.50.1 // indirect google.golang.org/protobuf v1.28.1 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect - gopkg.in/yaml.v2 v2.3.0 // indirect ) diff --git a/go.sum b/go.sum index 051257f5..38730fd5 100644 --- a/go.sum +++ b/go.sum @@ -590,9 +590,8 @@ gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= diff --git a/main.go b/main.go index d92f6b44..ea424d76 100644 --- a/main.go +++ b/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/hashicorp/packer-plugin-linode/builder/linode" - "github.com/hashicorp/packer-plugin-linode/version" + "github.com/linode/packer-plugin-linode/builder/linode" + "github.com/linode/packer-plugin-linode/version" "github.com/hashicorp/packer-plugin-sdk/plugin" ) From a1dcfbbaf011da355caa5583e847d5aab5c2b4f9 Mon Sep 17 00:00:00 2001 From: Lena Garber Date: Tue, 28 Mar 2023 09:59:13 -0400 Subject: [PATCH 2/3] go fmt --- builder/linode/linode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/linode/linode.go b/builder/linode/linode.go index 58c61997..c8ca3f77 100644 --- a/builder/linode/linode.go +++ b/builder/linode/linode.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - "github.com/linode/packer-plugin-linode/version" "github.com/linode/linodego" + "github.com/linode/packer-plugin-linode/version" "golang.org/x/oauth2" ) From af66700dade24847fef571f0dc708e262a4e4bb7 Mon Sep 17 00:00:00 2001 From: Lena Garber Date: Tue, 28 Mar 2023 10:22:32 -0400 Subject: [PATCH 3/3] Fix missed references --- docs/builders/linode.mdx | 2 +- example/basic_linode.pkr.hcl | 2 +- example/hcp_packer_linode.pkr.hcl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/builders/linode.mdx b/docs/builders/linode.mdx index 84353c45..40ffc306 100644 --- a/docs/builders/linode.mdx +++ b/docs/builders/linode.mdx @@ -31,7 +31,7 @@ packer { required_plugins { linode = { version = ">= 1.0.1" - source = "github.com/hashicorp/linode" + source = "github.com/linode/linode" } } } diff --git a/example/basic_linode.pkr.hcl b/example/basic_linode.pkr.hcl index c81c1e53..ba9843e6 100644 --- a/example/basic_linode.pkr.hcl +++ b/example/basic_linode.pkr.hcl @@ -2,7 +2,7 @@ packer { required_plugins { linode = { version = ">= 1.0.1" - source = "github.com/hashicorp/linode" + source = "github.com/linode/linode" } } } diff --git a/example/hcp_packer_linode.pkr.hcl b/example/hcp_packer_linode.pkr.hcl index 0a869c4c..6bc08a7c 100644 --- a/example/hcp_packer_linode.pkr.hcl +++ b/example/hcp_packer_linode.pkr.hcl @@ -2,7 +2,7 @@ packer { required_plugins { linode = { version = ">= 1.0.2" - source = "github.com/hashicorp/linode" + source = "github.com/linode/linode" } } }