Skip to content

Commit

Permalink
github.com/hashicorp/packer-plugin-scaleway -> github.com/scaleway/pa…
Browse files Browse the repository at this point in the history
…cker-plugin-scaleway
  • Loading branch information
azr committed Sep 29, 2021
1 parent 2bdfd5f commit ff8324d
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand All @@ -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
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 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.
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 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:
Expand Down Expand Up @@ -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:

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-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!

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion builder/scaleway/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
)
Expand Down
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/hashicorp/packer-plugin-scaleway
module github.com/scaleway/packer-plugin-scaleway

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ff8324d

Please sign in to comment.