Skip to content

Commit

Permalink
breaking: rename go module to skipper/v1 to prevent future conflict…
Browse files Browse the repository at this point in the history
…s with legacy
  • Loading branch information
lukasjarosch committed May 1, 2024
1 parent f6839f3 commit 6c4637a
Show file tree
Hide file tree
Showing 47 changed files with 68 additions and 68 deletions.
6 changes: 3 additions & 3 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
with-expecter: True
dir: "mocks/{{ .PackageName }}"
packages:
github.com/lukasjarosch/skipper:
github.com/lukasjarosch/skipper/v1:
interfaces:
ValueReferenceSource:
PathValueSource:
VariableSource:
github.com/lukasjarosch/skipper/expression:
github.com/lukasjarosch/skipper/v1/expression:
interfaces:
PathValueProvider:
github.com/lukasjarosch/skipper/reference:
github.com/lukasjarosch/skipper/v1/reference:
interfaces:
ValueSource:
ValueTarget:
2 changes: 1 addition & 1 deletion class.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper"
"github.com/lukasjarosch/skipper/codec"
"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1"
"github.com/lukasjarosch/skipper/v1/codec"
"github.com/lukasjarosch/skipper/v1/data"
)

func TestNewClass(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion codec/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/yaml.v3"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

// YamlPathSelector is used to select paths to files which can be handled by the yaml codec.
Expand Down
2 changes: 1 addition & 1 deletion data/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

. "github.com/lukasjarosch/skipper/data"
. "github.com/lukasjarosch/skipper/v1/data"
)

func TestNewContainer_Valid(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion data/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

func TestWalk(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion data/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

. "github.com/lukasjarosch/skipper/data"
. "github.com/lukasjarosch/skipper/v1/data"
)

func TestNewPath(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion data/value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

. "github.com/lukasjarosch/skipper/data"
. "github.com/lukasjarosch/skipper/v1/data"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"regexp"
"strings"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/expression"
"github.com/lukasjarosch/skipper/graph"
"github.com/lukasjarosch/skipper/v1/data"
"github.com/lukasjarosch/skipper/v1/expression"
"github.com/lukasjarosch/skipper/v1/graph"
)

// expressionRegex is used to find the offsets within the context in which an expression occurred
Expand Down
2 changes: 1 addition & 1 deletion expression/dep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper/expression"
"github.com/lukasjarosch/skipper/v1/expression"
)

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

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

type state struct {
Expand Down
6 changes: 3 additions & 3 deletions expression/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/expression"
mock "github.com/lukasjarosch/skipper/mocks/expression"
"github.com/lukasjarosch/skipper/v1/data"
"github.com/lukasjarosch/skipper/v1/expression"
mock "github.com/lukasjarosch/skipper/v1/mocks/expression"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion expression/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/iancoleman/strcase"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

type FuncMap map[string]any
Expand Down
2 changes: 1 addition & 1 deletion expression/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

type Node interface {
Expand Down
2 changes: 1 addition & 1 deletion expression/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/davecgh/go-spew/spew"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

type Tree struct {
Expand Down
2 changes: 1 addition & 1 deletion expression/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper/expression"
"github.com/lukasjarosch/skipper/v1/expression"
)

func TestParse(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions expression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper"
"github.com/lukasjarosch/skipper/data"
mocks "github.com/lukasjarosch/skipper/mocks/skipper"
"github.com/lukasjarosch/skipper/v1"
"github.com/lukasjarosch/skipper/v1/data"
mocks "github.com/lukasjarosch/skipper/v1/mocks/skipper"
)

func TestNewExpressionManager(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/lukasjarosch/skipper"
"github.com/lukasjarosch/skipper/codec"
"github.com/lukasjarosch/skipper/v1"
"github.com/lukasjarosch/skipper/v1/codec"
)

func TestFileSelector(t *testing.T) {
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/lukasjarosch/skipper
module github.com/lukasjarosch/skipper/v1

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion hook.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package skipper

import "github.com/lukasjarosch/skipper/data"
import "github.com/lukasjarosch/skipper/v1/data"

// SetHookFunc can be registered as either preSetHook or postSetHook
// and will then be called respectively.
Expand Down
2 changes: 1 addition & 1 deletion inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/lukasjarosch/skipper/data"
"github.com/lukasjarosch/skipper/v1/data"
)

// Scope defines a 'namespace' within the Inventory which is made up of a collection of classes.
Expand Down
6 changes: 3 additions & 3 deletions inventory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/stretchr/testify/assert"

. "github.com/lukasjarosch/skipper"
"github.com/lukasjarosch/skipper/codec"
"github.com/lukasjarosch/skipper/data"
. "github.com/lukasjarosch/skipper/v1"
"github.com/lukasjarosch/skipper/v1/codec"
"github.com/lukasjarosch/skipper/v1/data"
)

func TestNewInventory(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mocks/expression/mock_Node.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/expression/mock_PathValueProvider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/reference/mock_ValueSource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/reference/mock_ValueTarget.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_ClassLoaderFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_DataContainer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_DataGetter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_DataGetterSetter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_DataSetter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_DataWalker.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_HookablePostRegisterClass.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_HookablePostRegisterScope.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_HookablePostSet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_PathValueSource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_RegisterClassHookFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_RegisterScopeHookFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mocks/skipper/mock_SetHookFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mocks/skipper/mock_ValueReferenceSource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6c4637a

Please sign in to comment.