Skip to content

Commit

Permalink
*: use kafka v2 to avoid compile error on linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliu0 committed May 16, 2023
1 parent 75ba1e9 commit d8af83b
Show file tree
Hide file tree
Showing 7 changed files with 1,975 additions and 32 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GOARCH := $(if $(GOARCH),$(GOARCH),amd64)
OS ?= $(shell go env GOOS)
ARCH ?= $(shell go env GOARCH)
#GO=GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 GOARCH=$(GOARCH) GO111MODULE=on go
GO := go
GO := GOOS=$(OS) GOARCH=$(ARCH) GO111MODULE=on go

PACKAGE_LIST := go list ./...| grep -vE "cmd"
PACKAGES := $$($(PACKAGE_LIST))
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ go 1.18

require (
github.com/HdrHistogram/hdrhistogram-go v1.0.0
github.com/confluentinc/confluent-kafka-go v1.9.2
github.com/go-sql-driver/mysql v1.5.0
github.com/confluentinc/confluent-kafka-go/v2 v2.1.1
github.com/go-sql-driver/mysql v1.6.0
github.com/jedib0t/go-pretty v4.3.0+incompatible
github.com/lib/pq v1.10.6
github.com/olekukonko/tablewriter v0.0.5
github.com/prometheus/client_golang v1.15.0
github.com/spf13/cobra v1.0.0
github.com/stretchr/testify v1.8.0
github.com/spf13/cobra v1.1.3
github.com/stretchr/testify v1.8.2
go.uber.org/atomic v1.9.0
golang.org/x/sync v0.1.0
)
Expand Down
1,986 changes: 1,964 additions & 22 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/sink/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql"
"encoding/json"
"fmt"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/util/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package util

import (
"context"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion tpch/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tpch
import (
"context"
"database/sql"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"

"github.com/pingcap/go-tpc/pkg/sink"
"github.com/pingcap/go-tpc/tpch/dbgen"
Expand Down
2 changes: 1 addition & 1 deletion tpch/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"database/sql"
"fmt"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"os"
"path"
"sort"
Expand Down

0 comments on commit d8af83b

Please sign in to comment.