Skip to content

Commit

Permalink
ref: Make initial changes for transfer to Linode GitHub org (#73)
Browse files Browse the repository at this point in the history
* Make initial changes for repo transfer
  • Loading branch information
lgarber-akamai authored Mar 29, 2023
1 parent 807cf82 commit 9fd0296
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ packer {
required_plugins {
linode = {
version = ">= 1.0.2"
source = "github.com/hashicorp/linode"
source = "github.com/linode/linode"
}
}
}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion builder/linode/linode.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"net/http"

"github.com/hashicorp/packer-plugin-linode/version"
"github.com/linode/linodego"
"github.com/linode/packer-plugin-linode/version"
"golang.org/x/oauth2"
)

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ packer {
required_plugins {
linode = {
version = ">= 1.0.1"
source = "github.com/hashicorp/linode"
source = "github.com/linode/linode"
}
}
}
```

#### 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
Expand Down
2 changes: 1 addition & 1 deletion docs/builders/linode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ packer {
required_plugins {
linode = {
version = ">= 1.0.1"
source = "github.com/hashicorp/linode"
source = "github.com/linode/linode"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/basic_linode.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ packer {
required_plugins {
linode = {
version = ">= 1.0.1"
source = "github.com/hashicorp/linode"
source = "github.com/linode/linode"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/hcp_packer_linode.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ packer {
required_plugins {
linode = {
version = ">= 1.0.2"
source = "github.com/hashicorp/linode"
source = "github.com/linode/linode"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hashicorp/packer-plugin-linode
module github.com/linode/packer-plugin-linode

go 1.18

Expand Down Expand Up @@ -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
)
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 9fd0296

Please sign in to comment.