Skip to content

Commit

Permalink
Change icinga2 client import to use vshn/go-icinga2-client
Browse files Browse the repository at this point in the history
This is necessary because `replace` is not supported by `go get` to
import a fork of a module, see golang/go#30354
  • Loading branch information
simu committed Mar 27, 2020
1 parent d8ba3f7 commit 241307d
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
- uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- run: go get github.com/vshn/signalilo
- run: go get -v github.com/vshn/signalilo
- run: ${GOROOT}/signalilo --version
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
"os"
"time"

"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/bketelsen/logr"
"github.com/corvus-ch/logr/buffered"
log "github.com/corvus-ch/logr/logrus"
"github.com/sirupsen/logrus"
"github.com/vshn/go-icinga2-client/icinga2"
)

type icingaConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion gc/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"

"github.com/vshn/signalilo/config"
"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
)

// extractDowntime searches the provided downtime array for a downtime for
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
module github.com/vshn/signalilo

require (
github.com/Nexinto/go-icinga2-client v0.0.0-20180829072643-d4f6001a2110
github.com/bketelsen/logr v0.0.0-20170116012416-f3d070bdd1c5
github.com/corvus-ch/logr v0.0.0-20180917163152-45217966b77e
github.com/prometheus/alertmanager v0.20.0
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.5.1
github.com/vshn/go-icinga2-client v0.0.6
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)

replace github.com/Nexinto/go-icinga2-client => github.com/vshn/go-icinga2-client v0.0.5

go 1.13
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/vshn/go-icinga2-client v0.0.5 h1:F3TL/QuJQNT2kgVxucSenyCv19gFkH27CILY6XUVBVs=
github.com/vshn/go-icinga2-client v0.0.5/go.mod h1:an7WxQ9/P5l4423TAkmVsMDV4t54m1q6RZDmE/Hmpok=
github.com/vshn/go-icinga2-client v0.0.6 h1:0DNvemSk4uAVAFTnmbWifvHvGWWmV8rM3cBxb1sXCGk=
github.com/vshn/go-icinga2-client v0.0.6/go.mod h1:T6r6HQ22NZsSUI/u5ThOlPsQrtbnJIImZTPAvEOSCdI=
github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg=
go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
Expand Down
4 changes: 2 additions & 2 deletions serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"net/http"
"time"

"github.com/bketelsen/logr"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/vshn/signalilo/config"
"github.com/vshn/signalilo/gc"
"github.com/vshn/signalilo/webhook"
"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/bketelsen/logr"
"gopkg.in/alecthomas/kingpin.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
package main

import (
"github.com/vshn/signalilo/config"
"github.com/stretchr/testify/assert"
"github.com/vshn/signalilo/config"
"net/http"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion webhook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"strings"

"github.com/vshn/signalilo/config"
"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/prometheus/alertmanager/template"
)

Expand Down
2 changes: 1 addition & 1 deletion webhook/icinga.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"time"

"github.com/vshn/signalilo/config"
"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/prometheus/alertmanager/template"
)

Expand Down
2 changes: 1 addition & 1 deletion webhook/icinga_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"

"github.com/vshn/signalilo/config"
"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/prometheus/alertmanager/template"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion webhook/variable_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"strconv"

"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/bketelsen/logr"
)

Expand Down
2 changes: 1 addition & 1 deletion webhook/variable_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/Nexinto/go-icinga2-client/icinga2"
"github.com/vshn/go-icinga2-client/icinga2"
"github.com/corvus-ch/logr/buffered"
"github.com/stretchr/testify/assert"
)
Expand Down

0 comments on commit 241307d

Please sign in to comment.