From 1de2f415fddbf6f84c1b1f996f2b4212a3864b52 Mon Sep 17 00:00:00 2001 From: Ed Date: Thu, 21 Nov 2024 14:32:09 +0200 Subject: [PATCH] module: Rename to reflect new package location --- .github/workflows/main.yml | 2 +- README.md | 6 +++--- api.go | 2 +- api_test.go | 2 +- build/ci/dangerfile.go | 2 +- build/ci/go.mod | 4 ++-- cmd/danger-go/main.go | 4 ++-- cmd/danger-go/main_internal_test.go | 2 +- cmd/danger-go/runner/runner.go | 4 ++-- go.mod | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca4728c..9440079 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: run: npm install -g danger - name: Install danger-go - run: go install github.com/luno/danger-go/cmd/danger-go + run: go install github.com/danger/golang/cmd/danger-go - name: Check versions run: | diff --git a/README.md b/README.md index 45e232d..ff1e7fe 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is a Go version of the popular [Danger](https://danger.systems/) tool. ## Installation of command line tool ```shell -go install github.com/luno/danger-go/cmd/danger-go@latest +go install github.com/danger/golang/cmd/danger-go@latest yarn global add danger ``` @@ -18,7 +18,7 @@ Requires [Danger JS](https://danger.systems/js) to run properly. ```go package main -import "github.com/luno/danger-go" +import "github.com/danger/golang" func Run(d *danger.T, pr danger.DSL) { d.Message("danger-go is running!", "", 0) @@ -27,7 +27,7 @@ func Run(d *danger.T, pr danger.DSL) { 3. Run the following in the directory: ```shell go mod init dangerfile -go get github.com/luno/danger-go +go get github.com/danger/golang go mod tidy ``` diff --git a/api.go b/api.go index 3cf168a..a26cbb0 100644 --- a/api.go +++ b/api.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - dangerJs "github.com/luno/danger-go/danger-js" + dangerJs "github.com/danger/golang/danger-js" ) // DSL wraps the DSL received from danger JS. This allows dangerfiles to only diff --git a/api_test.go b/api_test.go index a3a227d..24cb082 100644 --- a/api_test.go +++ b/api_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/luno/danger-go" + danger "github.com/danger/golang" ) func TestResults(t *testing.T) { diff --git a/build/ci/dangerfile.go b/build/ci/dangerfile.go index 845210c..42bc6a3 100644 --- a/build/ci/dangerfile.go +++ b/build/ci/dangerfile.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/luno/danger-go" + danger "github.com/danger/golang" ) // Run is invoked by danger-go diff --git a/build/ci/go.mod b/build/ci/go.mod index 837d022..140a529 100644 --- a/build/ci/go.mod +++ b/build/ci/go.mod @@ -2,6 +2,6 @@ module danger-go/dangerfile go 1.21 -require github.com/luno/danger-go v0.3.0 +require github.com/danger/golang v0.3.0 -replace github.com/luno/danger-go => ../../ +replace github.com/danger/golang => ../../ diff --git a/cmd/danger-go/main.go b/cmd/danger-go/main.go index e81aabd..0e1f5ab 100644 --- a/cmd/danger-go/main.go +++ b/cmd/danger-go/main.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/luno/danger-go/cmd/danger-go/runner" - dangerJs "github.com/luno/danger-go/danger-js" + "github.com/danger/golang/cmd/danger-go/runner" + dangerJs "github.com/danger/golang/danger-js" ) const version = "v0.3.0" diff --git a/cmd/danger-go/main_internal_test.go b/cmd/danger-go/main_internal_test.go index d087bec..241beef 100644 --- a/cmd/danger-go/main_internal_test.go +++ b/cmd/danger-go/main_internal_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" ) -const cliPkg = "github.com/luno/danger-go/cmd/danger-go" +const cliPkg = "github.com/danger/golang/cmd/danger-go" func execute(args ...string) (string, error) { cmdArgs := append([]string{"run", cliPkg}, args...) diff --git a/cmd/danger-go/runner/runner.go b/cmd/danger-go/runner/runner.go index 94eefed..401e168 100644 --- a/cmd/danger-go/runner/runner.go +++ b/cmd/danger-go/runner/runner.go @@ -15,8 +15,8 @@ import ( "plugin" "strings" - "github.com/luno/danger-go" - dangerJs "github.com/luno/danger-go/danger-js" + danger "github.com/danger/golang" + dangerJs "github.com/danger/golang/danger-js" ) const dangerURLPrefix = "danger://dsl/" diff --git a/go.mod b/go.mod index fd5c743..663e5af 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/luno/danger-go +module github.com/danger/golang go 1.21