Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for local build for apple arm based machines #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"strings"

confluent "github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/goto/raccoon/config/util"
"github.com/spf13/viper"
confluent "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

var PublisherKafka publisherKafka
Expand Down
32 changes: 15 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,37 @@ go 1.17
require (
buf.build/gen/go/gotocompany/proton/grpc/go v1.3.0-20230313110213-9a3d240d5293.1
buf.build/gen/go/gotocompany/proton/protocolbuffers/go v1.29.0-20230313110213-9a3d240d5293.1
github.com/confluentinc/confluent-kafka-go/v2 v2.2.0
github.com/gorilla/mux v1.7.4
github.com/gorilla/websocket v1.4.2
github.com/sirupsen/logrus v1.6.0
github.com/sirupsen/logrus v1.8.1
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.8.1
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.29.0
github.com/stretchr/testify v1.8.2
google.golang.org/grpc v1.54.0
google.golang.org/protobuf v1.30.0
gopkg.in/alexcesaro/statsd.v2 v2.0.0
gopkg.in/confluentinc/confluent-kafka-go.v1 v1.4.2
)

require (
github.com/confluentinc/confluent-kafka-go v1.4.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.4.7 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
1,256 changes: 1,233 additions & 23 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (

pbgrpc "buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/raccoon/v1beta1/raccoonv1beta1grpc"
pb "buf.build/gen/go/gotocompany/proton/protocolbuffers/go/gotocompany/raccoon/v1beta1"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/timestamppb"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

var uuid string
Expand Down
2 changes: 1 addition & 1 deletion publisher/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package publisher

import (
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
)

type Client interface {
Expand Down
5 changes: 1 addition & 4 deletions publisher/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import (
"fmt"
"strings"

"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
// Importing librd to make it work on vendor mode
_ "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka"

pb "buf.build/gen/go/gotocompany/proton/protocolbuffers/go/gotocompany/raccoon/v1beta1"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/goto/raccoon/config"
"github.com/goto/raccoon/logger"
"github.com/goto/raccoon/metrics"
Expand Down
2 changes: 1 addition & 1 deletion publisher/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"

pb "buf.build/gen/go/gotocompany/proton/protocolbuffers/go/gotocompany/raccoon/v1beta1"
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/goto/raccoon/logger"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion publisher/mockclient.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package publisher

import (
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/stretchr/testify/mock"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

type mockClient struct {
Expand Down
2 changes: 1 addition & 1 deletion worker/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package worker

import (
pb "buf.build/gen/go/gotocompany/proton/protocolbuffers/go/gotocompany/raccoon/v1beta1"
kafka "github.com/confluentinc/confluent-kafka-go/v2/kafka"
mock "github.com/stretchr/testify/mock"
kafka "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

// KafkaProducer is an autogenerated mock type for the KafkaProducer type
Expand Down
2 changes: 1 addition & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"sync"
"time"

"github.com/confluentinc/confluent-kafka-go/v2/kafka"
"github.com/goto/raccoon/collection"
"github.com/goto/raccoon/logger"
"github.com/goto/raccoon/metrics"
"github.com/goto/raccoon/publisher"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)

// Pool spawn goroutine as much as Size that will listen to EventsChannel. On Close, wait for all data in EventsChannel to be processed.
Expand Down
Loading