Skip to content

Commit b7d1fcf

Browse files
authored
feat: support for local build in arm64/apple silicon (#59)
* use version 1.9.2 * bump confluent client version * comment import * fix: go.mod and go.sum files * refactor: remove vendor imports * bump version to v2 for confluent kafka-go * bump golang version to 1.20 * bump go.mod to 1.20 * revert to version 1.9.x * revert to version 1.14 * bump version.txt to v0.2.1
1 parent 8a6c348 commit b7d1fcf

File tree

11 files changed

+121
-37
lines changed

11 files changed

+121
-37
lines changed

config/publisher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"os"
66
"strings"
77

8+
confluent "github.com/confluentinc/confluent-kafka-go/kafka"
89
"github.com/raystack/raccoon/config/util"
910
"github.com/spf13/viper"
10-
confluent "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
1111
)
1212

1313
var PublisherKafka publisherKafka

go.mod

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ module github.com/raystack/raccoon
33
go 1.14
44

55
require (
6-
github.com/confluentinc/confluent-kafka-go v1.4.2 // indirect
6+
github.com/confluentinc/confluent-kafka-go v1.9.3-RC3
77
github.com/gorilla/mux v1.7.4
88
github.com/gorilla/websocket v1.4.2
99
github.com/sirupsen/logrus v1.6.0
1010
github.com/spf13/viper v1.7.0
11-
github.com/stretchr/testify v1.7.0
12-
golang.org/x/sys v0.0.0-20211109184856-51b60fd695b3 // indirect
13-
google.golang.org/grpc v1.41.0
11+
github.com/stretchr/testify v1.7.1
12+
google.golang.org/grpc v1.46.0
1413
google.golang.org/protobuf v1.31.0
1514
gopkg.in/alexcesaro/statsd.v2 v2.0.0
16-
gopkg.in/confluentinc/confluent-kafka-go.v1 v1.4.2
1715
)

go.sum

Lines changed: 109 additions & 21 deletions
Large diffs are not rendered by default.

integration/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import (
1313
"testing"
1414
"time"
1515

16+
"github.com/confluentinc/confluent-kafka-go/kafka"
1617
"github.com/gorilla/websocket"
1718
pb "github.com/raystack/raccoon/proto"
1819
"github.com/stretchr/testify/assert"
1920
"google.golang.org/grpc"
2021
"google.golang.org/grpc/metadata"
2122
"google.golang.org/protobuf/proto"
2223
"google.golang.org/protobuf/types/known/timestamppb"
23-
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
2424
)
2525

2626
var uuid string

publisher/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package publisher
22

33
import (
4-
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
4+
"github.com/confluentinc/confluent-kafka-go/kafka"
55
)
66

77
type Client interface {

publisher/kafka.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import (
55
"fmt"
66
"strings"
77

8-
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
9-
// Importing librd to make it work on vendor mode
10-
_ "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka"
8+
"github.com/confluentinc/confluent-kafka-go/kafka"
119

1210
"github.com/raystack/raccoon/config"
1311
"github.com/raystack/raccoon/logger"

publisher/kafka_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"os"
66
"testing"
77

8+
"github.com/confluentinc/confluent-kafka-go/kafka"
89
"github.com/raystack/raccoon/logger"
910
pb "github.com/raystack/raccoon/proto"
1011
"github.com/stretchr/testify/assert"
1112
"github.com/stretchr/testify/mock"
12-
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
1313
)
1414

1515
const (

publisher/mockclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package publisher
22

33
import (
4+
"github.com/confluentinc/confluent-kafka-go/kafka"
45
"github.com/stretchr/testify/mock"
5-
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
66
)
77

88
type mockClient struct {

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.1.4
1+
v0.2.1

worker/mocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package worker
22

33
import (
4+
kafka "github.com/confluentinc/confluent-kafka-go/kafka"
45
pb "github.com/raystack/raccoon/proto"
56
mock "github.com/stretchr/testify/mock"
6-
kafka "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
77
)
88

99
// KafkaProducer is an autogenerated mock type for the KafkaProducer type

0 commit comments

Comments
 (0)