Created
May 4, 2022 11:32
-
-
Save chrigl/a9d8cb8143eb37fd7607b4a6ec586b38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ mkdir exporter-test | |
❯ cd exporter-test | |
❯ gh repo clone gecio/openvswitch_exporter | |
❯ sed -i 's#gecio#digitalocean#' internal/ovsexporter/ovsexporter_gec.go | |
❯ sed -i 's#gecio#digitalocean#' cmd/openvswitch_exporter/main.go | |
❯ sed -i 's#gecio#digitalocean#' internal/ovsexporter/dumpports.go | |
❯ git diff | |
diff --git a/cmd/openvswitch_exporter/main.go b/cmd/openvswitch_exporter/main.go | |
diff --git a/cmd/openvswitch_exporter/main.go b/cmd/openvswitch_exporter/main.go | |
index 4cb998b..813f102 100644 | |
--- a/cmd/openvswitch_exporter/main.go | |
+++ b/cmd/openvswitch_exporter/main.go | |
@@ -10,7 +10,7 @@ import ( | |
"net/http" | |
"strings" | |
- "github.com/gecio/go-openvswitch/ovs" | |
+ "github.com/digitalocean/go-openvswitch/ovs" | |
"github.com/digitalocean/go-openvswitch/ovsnl" | |
"github.com/digitalocean/openvswitch_exporter/internal/ovsexporter" | |
"github.com/prometheus/client_golang/prometheus" | |
diff --git a/internal/ovsexporter/dumpports.go b/internal/ovsexporter/dumpports.go | |
index 0aa7176..a6a90a8 100644 | |
--- a/internal/ovsexporter/dumpports.go | |
+++ b/internal/ovsexporter/dumpports.go | |
@@ -4,7 +4,7 @@ import ( | |
"fmt" | |
"strconv" | |
- "github.com/gecio/go-openvswitch/ovs" | |
+ "github.com/digitalocean/go-openvswitch/ovs" | |
"github.com/prometheus/client_golang/prometheus" | |
) | |
diff --git a/internal/ovsexporter/ovsexporter_gec.go b/internal/ovsexporter/ovsexporter_gec.go | |
index f1d0ce9..d7d01d2 100644 | |
--- a/internal/ovsexporter/ovsexporter_gec.go | |
+++ b/internal/ovsexporter/ovsexporter_gec.go | |
@@ -1,7 +1,7 @@ | |
package ovsexporter | |
import ( | |
- "github.com/gecio/go-openvswitch/ovs" | |
+ "github.com/digitalocean/go-openvswitch/ovs" | |
"github.com/digitalocean/go-openvswitch/ovsnl" | |
"github.com/prometheus/client_golang/prometheus" | |
❯ go mod edit -replace github.com/digitalocean/go-openvswitch=github.com/gecio/go-openvswitch@master | |
❯ go mod tidy | |
❯ go build cmd/openvswitch_exporter/main.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment