Skip to content

Commit 306a338

Browse files
authored
fix: use correct protobuf dependency in pkg/client (#133)
* fix: use correct protobuf dependency in pkg/client this is causing downstream binaries to include github.com/golang/protobuf the dep should be google.golang.org/protobuf/ * Update reader_test.go
1 parent 617f41f commit 306a338

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.21
55
require (
66
github.com/elastic/elastic-agent-libs v0.7.2
77
github.com/gofrs/uuid/v5 v5.2.0
8-
github.com/golang/protobuf v1.5.3
98
github.com/google/go-cmp v0.5.9
109
github.com/google/pprof v0.0.0-20230426061923-93006964c1fc
1110
github.com/magefile/mage v1.13.0
@@ -17,6 +16,7 @@ require (
1716
require (
1817
github.com/Microsoft/go-winio v0.5.2 // indirect
1918
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/golang/protobuf v1.5.3 // indirect
2020
github.com/kr/text v0.2.0 // indirect
2121
github.com/pmezard/go-difflib v1.0.0 // indirect
2222
golang.org/x/net v0.34.0 // indirect

pkg/client/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"errors"
1111
"io"
1212

13-
protobuf "github.com/golang/protobuf/proto"
1413
"google.golang.org/grpc"
1514
"google.golang.org/grpc/credentials"
15+
protobuf "google.golang.org/protobuf/proto"
1616

1717
"github.com/elastic/elastic-agent-client/v7/pkg/proto"
1818
)

pkg/client/reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
"testing"
2121
"time"
2222

23-
protobuf "github.com/golang/protobuf/proto"
2423
"github.com/stretchr/testify/assert"
2524
"github.com/stretchr/testify/require"
2625
"google.golang.org/grpc"
2726
"google.golang.org/grpc/credentials"
27+
protobuf "google.golang.org/protobuf/proto"
2828

2929
"github.com/elastic/elastic-agent-client/v7/pkg/client/mock"
3030
"github.com/elastic/elastic-agent-client/v7/pkg/proto"

0 commit comments

Comments
 (0)