diff --git a/.circleci/config.yml b/.circleci/config.yml index 26f91d9..20c9cdb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,13 +58,13 @@ commands: jobs: test-linux: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - checkout - run: go test -count 1 ./... -coverprofile=coverage.txt -covermode=atomic -timeout=3m test-darwin: executor: darwin - working_directory: ~/go/github.com/hashicorp/packer-plugin-scaleway + working_directory: ~/go/github.com/scaleway/packer-plugin-scaleway steps: - install-go-run-tests-unix: GOOS: darwin @@ -102,7 +102,7 @@ jobs: fi check-generate: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - checkout - run: | @@ -120,38 +120,38 @@ jobs: GOOS: linux build_windows: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: windows build_darwin: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: darwin build_darwin_arm64: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: darwin GOARCH: arm64 build_freebsd: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: freebsd build_solaris: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: solaris build_openbsd: executor: golang - working_directory: /go/src/github.com/hashicorp/packer-plugin-scaleway + working_directory: /go/src/github.com/scaleway/packer-plugin-scaleway steps: - build-and-persist-plugin-binary: GOOS: openbsd diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b64412e..18fd6a4 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 Scaleway plugin source (and its dependencies) by running - `go get github.com/hashicorp/packer-plugin-scaleway`. This will download the source to - `$GOPATH/src/github.com/hashicorp/packer-plugin-scaleway`. + `go get github.com/scaleway/packer-plugin-scaleway`. This will download the source to + `$GOPATH/src/github.com/scaleway/packer-plugin-scaleway`. -2. When working on the Scaleway plugin, first `cd $GOPATH/src/github.com/hashicorp/packer-plugin-scaleway` +2. When working on the Scaleway plugin, first `cd $GOPATH/src/github.com/scaleway/packer-plugin-scaleway` so you can run `make dev` and easily access other files. `make dev` will build the packer-plugin-scaleway binary and install it under `$HOME/.packer.d/plugins/`. 3. Make your changes to the Scaleway 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-scaleway` from the project root, and `mv packer-plugin-scaleway ~/.packer.d/plugins/packer-plugin-scaleway` to install the plugin. -4. After building the Scaleway 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-scaleway/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 Scaleway plugin successfully, use the latest version of Packer to build a machine and verify your changes. In the [example folder](https://github.com/scaleway/packer-plugin-scaleway/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 Scaleway plugin](https://github.com/hashicorp/packer-plugin-scaleway#fork-destination-box), push your +need to [fork the Scaleway plugin](https://github.com/scaleway/packer-plugin-scaleway#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 Scaleway plu 1. Navigate to the code: - `cd $GOPATH/src/github.com/hashicorp/packer-plugin-scaleway` + `cd $GOPATH/src/github.com/scaleway/packer-plugin-scaleway` 2. Add the remote by running: diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 2dc5357..0364ea4 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-scaleway/blob/main/.github/CONTRIBUTING.md#opening-an-pull-request +https://github.com/scaleway/packer-plugin-scaleway/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 26e4d9d..ef42264 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ packer { #### Manual installation -You can find pre-built binary releases of the plugin [here](https://github.com/hashicorp/packer-plugin-scaleway/releases). +You can find pre-built binary releases of the plugin [here](https://github.com/scaleway/packer-plugin-scaleway/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/scaleway/config.go b/builder/scaleway/config.go index a69bc42..6c783cb 100644 --- a/builder/scaleway/config.go +++ b/builder/scaleway/config.go @@ -9,7 +9,6 @@ import ( "log" "os" - "github.com/hashicorp/packer-plugin-scaleway/version" "github.com/hashicorp/packer-plugin-sdk/common" "github.com/hashicorp/packer-plugin-sdk/communicator" packersdk "github.com/hashicorp/packer-plugin-sdk/packer" @@ -18,6 +17,7 @@ import ( "github.com/hashicorp/packer-plugin-sdk/useragent" "github.com/hashicorp/packer-plugin-sdk/uuid" "github.com/mitchellh/mapstructure" + "github.com/scaleway/packer-plugin-scaleway/version" "github.com/scaleway/scaleway-sdk-go/api/instance/v1" "github.com/scaleway/scaleway-sdk-go/scw" ) diff --git a/go.mod b/go.mod index 0850977..b6632df 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/hashicorp/packer-plugin-scaleway +module github.com/scaleway/packer-plugin-scaleway go 1.17 diff --git a/main.go b/main.go index c8d9eec..477b21c 100644 --- a/main.go +++ b/main.go @@ -6,8 +6,8 @@ import ( "github.com/hashicorp/packer-plugin-sdk/plugin" - "github.com/hashicorp/packer-plugin-scaleway/builder/scaleway" - "github.com/hashicorp/packer-plugin-scaleway/version" + "github.com/scaleway/packer-plugin-scaleway/builder/scaleway" + "github.com/scaleway/packer-plugin-scaleway/version" ) func main() {