Skip to content

Commit

Permalink
switch to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Mar 26, 2024
1 parent c3b29d9 commit c250cf0
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 19 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
GO ?= go

.PHONY: test test-norace

test:
$(GO) test ./... -count=1 -race

test-norace:
$(GO) test ./... -count=1


4 changes: 2 additions & 2 deletions asynctask/asynctasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v5/struct/traits/lifecycle"
"github.com/splitio/go-toolkit/v6/logging"
"github.com/splitio/go-toolkit/v6/struct/traits/lifecycle"
)

// AsyncTask is a struct that wraps tasks that should run periodically and can be remotely stopped & started,
Expand Down
2 changes: 1 addition & 1 deletion asynctask/asynctasks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v6/logging"
)

func TestAsyncTaskNormalOperation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion backoff/mocks/mocks.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mocks

import (
"github.com/splitio/go-toolkit/v5/backoff"
"github.com/splitio/go-toolkit/v6/backoff"
"github.com/stretchr/testify/mock"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion datastructures/cache/multilevel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cache
import (
"context"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v6/logging"
)

// MLCLayer is the interface that should be implemented for all caching structs to be used with this piece of code.
Expand Down
2 changes: 1 addition & 1 deletion datastructures/cache/multilevel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"testing"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v6/logging"
)

type LayerMock struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/splitio/go-toolkit/v5
module github.com/splitio/go-toolkit/v6

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion logging/levels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package logging
import (
"testing"

"github.com/splitio/go-toolkit/v5/logging/mocks"
"github.com/splitio/go-toolkit/v6/logging/mocks"
)

func TestErrorLevel(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion redis/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package helpers
import (
"fmt"

"github.com/splitio/go-toolkit/v5/redis"
"github.com/splitio/go-toolkit/v6/redis"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions redis/helpers/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"testing"

"github.com/splitio/go-toolkit/v5/redis"
"github.com/splitio/go-toolkit/v5/redis/mocks"
"github.com/splitio/go-toolkit/v6/redis"
"github.com/splitio/go-toolkit/v6/redis/mocks"
)

func TestEnsureConnected(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion redis/mocks/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mocks
import (
"time"

"github.com/splitio/go-toolkit/v5/redis"
"github.com/splitio/go-toolkit/v6/redis"
)

// MockResultOutput mocks struct
Expand Down
4 changes: 2 additions & 2 deletions sse/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"sync"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v5/struct/traits/lifecycle"
"github.com/splitio/go-toolkit/v6/logging"
"github.com/splitio/go-toolkit/v6/struct/traits/lifecycle"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion sse/sse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v6/logging"
)

func TestSSEErrorConnecting(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion struct/jsonvalidator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"strings"

"github.com/splitio/go-toolkit/v5/datastructures/set"
"github.com/splitio/go-toolkit/v6/datastructures/set"
)

func getFieldsForStructRecursive(prefix string, structType reflect.Type) []string {
Expand Down
4 changes: 2 additions & 2 deletions workerpool/workerpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v5/struct/traits/lifecycle"
"github.com/splitio/go-toolkit/v6/logging"
"github.com/splitio/go-toolkit/v6/struct/traits/lifecycle"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion workerpool/workerpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/splitio/go-toolkit/v5/logging"
"github.com/splitio/go-toolkit/v6/logging"
)

var resMutex sync.RWMutex
Expand Down

0 comments on commit c250cf0

Please sign in to comment.