Skip to content

Commit

Permalink
Merge pull request #2 from mikeee/update-dapr-dapr-mikeee
Browse files Browse the repository at this point in the history
Update dapr dapr mikeee
  • Loading branch information
JoshVanL authored Jul 9, 2024
2 parents 0c2f594 + 3eb484f commit b20cef7
Show file tree
Hide file tree
Showing 27 changed files with 165 additions and 715 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
uses: actions/checkout@v4

- name: "Run FOSSA Scan"
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred
uses: fossas/fossa-action@v1.3.3 # Use a specific version if locking is preferred
with:
api-key: ${{ env.FOSSA_API_KEY }}

- name: "Run FOSSA Test"
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred
uses: fossas/fossa-action@v1.3.3 # Use a specific version if locking is preferred
with:
api-key: ${{ env.FOSSA_API_KEY }}
run-tests: true
2 changes: 1 addition & 1 deletion .github/workflows/test-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: codecov/codecov-action@v4

- name: Lint
uses: golangci/golangci-lint-action@v3.3.1
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCILINT_VER }}
skip-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-tooling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: make tidy

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCILINT_VER }}
working-directory: ./tools/check-lint-version
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
RELEASE_VERSION =v1.0.0-rc-3
GDOC_PORT =8888
GO_COMPAT_VERSION=1.21

.PHONY: all
all: help

.PHONY: tidy
tidy: ## Updates the go modules
go mod tidy -compat=$(GO_COMPAT_VERSION)
go mod tidy

.PHONY: test
test:
Expand Down Expand Up @@ -57,3 +56,5 @@ check-diff:
.PHONY: modtidy
modtidy:
go mod tidy


6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func NewClientWithAddressContext(ctx context.Context, address string) (client Cl

opts := []grpc.DialOption{
grpc.WithUserAgent(userAgent()),
grpc.WithBlock(),
grpc.WithBlock(), //nolint:staticcheck
authTokenUnaryInterceptor(at),
authTokenStreamInterceptor(at),
}
Expand All @@ -337,7 +337,7 @@ func NewClientWithAddressContext(ctx context.Context, address string) (client Cl
}

ctx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSeconds)*time.Second)
conn, err := grpc.DialContext(
conn, err := grpc.DialContext( //nolint:staticcheck
ctx,
parsedAddress.Target,
opts...,
Expand Down Expand Up @@ -373,7 +373,7 @@ func NewClientWithSocket(socket string) (client Client, err error) {
at := &authToken{}
logger.Printf("dapr client initializing for: %s", socket)
addr := "unix://" + socket
conn, err := grpc.Dial(
conn, err := grpc.Dial( //nolint:staticcheck
addr,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithUserAgent(userAgent()),
Expand Down
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func getTestClient(ctx context.Context) (client Client, closer func()) {
d := grpc.WithContextDialer(func(context.Context, string) (net.Conn, error) {
return l.Dial()
})

//nolint:staticcheck
c, err := grpc.DialContext(ctx, "", d, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
logger.Fatalf("failed to dial test context: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion client/wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func createUnresponsiveServer(network string, unresponsiveServerAddress string)
}

func createNonBlockingClient(ctx context.Context, serverAddr string) (client Client, err error) {
conn, err := grpc.DialContext(
conn, err := grpc.DialContext( //nolint:staticcheck
ctx,
serverAddr,
grpc.WithTransportCredentials(insecure.NewCredentials()),
Expand Down
29 changes: 0 additions & 29 deletions examples/actor/go.mod

This file was deleted.

67 changes: 0 additions & 67 deletions examples/actor/go.sum

This file was deleted.

32 changes: 0 additions & 32 deletions examples/configuration/go.mod

This file was deleted.

74 changes: 0 additions & 74 deletions examples/configuration/go.sum

This file was deleted.

39 changes: 39 additions & 0 deletions examples/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module github.com/dapr/go-sdk/examples

go 1.22.5

replace github.com/dapr/go-sdk => ../

require (
github.com/alecthomas/kingpin/v2 v2.4.0
github.com/dapr/go-sdk v0.0.0-00010101000000-000000000000
github.com/go-redis/redis/v8 v8.11.5
github.com/google/uuid v1.6.0
google.golang.org/grpc v1.64.0
google.golang.org/grpc/examples v0.0.0-20240529235625-24e902437554
)

require (
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/dapr/dapr v1.14.0-rc.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/go-chi/chi/v5 v5.0.12 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/marusama/semaphore/v2 v2.5.0 // indirect
github.com/microsoft/durabletask-go v0.5.0 // indirect
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
go.opentelemetry.io/otel v1.27.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240624140628-dc46fd24d27d // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit b20cef7

Please sign in to comment.