Skip to content

Commit

Permalink
module: Rename to reflect new package location (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarrod authored Nov 22, 2024
1 parent 1e1ead1 commit 8ca51cc
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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)
Expand All @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion build/ci/dangerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/luno/danger-go"
danger "github.com/danger/golang"
)

// Run is invoked by danger-go
Expand Down
4 changes: 2 additions & 2 deletions build/ci/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 => ../../
4 changes: 2 additions & 2 deletions cmd/danger-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/danger-go/main_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down
4 changes: 2 additions & 2 deletions cmd/danger-go/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
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/luno/danger-go
module github.com/danger/golang

go 1.21

Expand Down

0 comments on commit 8ca51cc

Please sign in to comment.