From b9fe14cb3717a9cc52fadec18f8b476a4a2cfc63 Mon Sep 17 00:00:00 2001 From: Ed Date: Wed, 23 Aug 2023 11:00:08 +0100 Subject: [PATCH 1/2] Update versions, add local replace directive --- build/ci/dangerfile.go | 2 ++ build/ci/go.mod | 6 ++++-- build/ci/go.sum | 4 +--- go.mod | 6 ++---- go.sum | 11 ++--------- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/build/ci/dangerfile.go b/build/ci/dangerfile.go index 5b22f97..845210c 100644 --- a/build/ci/dangerfile.go +++ b/build/ci/dangerfile.go @@ -2,6 +2,8 @@ package main import ( "fmt" + + "github.com/luno/danger-go" ) // Run is invoked by danger-go diff --git a/build/ci/go.mod b/build/ci/go.mod index 670b51a..10867e2 100644 --- a/build/ci/go.mod +++ b/build/ci/go.mod @@ -1,5 +1,7 @@ module danger-go/dangerfile -go 1.19 +go 1.20 -require github.com/luno/danger-go v0.1.0 +require github.com/luno/danger-go v0.2.0 + +replace github.com/luno/danger-go => ../../ diff --git a/build/ci/go.sum b/build/ci/go.sum index 0238b47..1fdbe10 100644 --- a/build/ci/go.sum +++ b/build/ci/go.sum @@ -1,6 +1,4 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/luno/danger-go v0.1.0 h1:SYIi2FAWIWukDMQTjeIvndavigbZWM8CDtSXvpFkKZE= -github.com/luno/danger-go v0.1.0/go.mod h1:JIzQHXs5iGbWszdpQfwuEiVPd0Ees93yjzDqBUMQl6c= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/go.mod b/go.mod index e286651..2076a89 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,11 @@ module github.com/luno/danger-go -go 1.19 +go 1.20 -require github.com/stretchr/testify v1.8.1 +require github.com/stretchr/testify v1.8.4 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/luno/danger-go v0.0.0-20230121134440-81ada33efa08 => github.com/moolmanruan/danger-go v0.1.0 diff --git a/go.sum b/go.sum index 2ec90f7..fa4b6e6 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,10 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 479b52ab29febb0869fe701aa2f7bf28b9e0f42b Mon Sep 17 00:00:00 2001 From: Ed Date: Wed, 23 Aug 2023 11:09:42 +0100 Subject: [PATCH 2/2] Update version used in workflow --- .github/workflows/main.yml | 2 +- cmd/danger-go/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54a6f57..d9131f6 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@v0.1.0 # match version used in build/ci + run: go install github.com/luno/danger-go/cmd/danger-go@v0.2.0 # match version used in build/ci - name: Check versions run: | diff --git a/cmd/danger-go/main.go b/cmd/danger-go/main.go index e6eec07..efad195 100644 --- a/cmd/danger-go/main.go +++ b/cmd/danger-go/main.go @@ -9,7 +9,7 @@ import ( dangerJs "github.com/luno/danger-go/danger-js" ) -const version = "v0.1.0" +const version = "v0.2.0" // main entrypoint of the danger-go command func main() {