Skip to content

Commit

Permalink
Merge pull request #25 from exaco/issue6
Browse files Browse the repository at this point in the history
Issue6
  • Loading branch information
hoptical authored Nov 17, 2021
2 parents f83c912 + 24e8386 commit 2bcf515
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion Magefile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage

package main

Expand All @@ -15,3 +16,8 @@ func Hello() {

// Default configures the default target.
var Default = build.BuildAll

var _ = build.SetBeforeBuildCallback(func(cfg build.Config) (build.Config, error) {
cfg.EnableCGo = true
return cfg, nil
})
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/grafana/grafana-starter-datasource-backend
module github.com/exaco/grafana-kafka-datasource

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"os"

"github.com/exaco/grafana-kafka-datasource/pkg/plugin"
"github.com/grafana/grafana-plugin-sdk-go/backend/datasource"
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
"github.com/grafana/grafana-starter-datasource-backend/pkg/plugin"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana-plugin-sdk-go/live"

"github.com/grafana/grafana-starter-datasource-backend/pkg/kafka_client"
"github.com/exaco/grafana-kafka-datasource/pkg/kafka_client"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/exaco/grafana-kafka-datasource/pkg/plugin"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-starter-datasource-backend/pkg/plugin"
)

func TestQueryData(t *testing.T) {
Expand All @@ -19,7 +19,7 @@ func TestQueryData(t *testing.T) {
},
},
)

if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 2bcf515

Please sign in to comment.