Skip to content

Commit

Permalink
Rename module to go.szostok.io/codeowners-validator
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Jul 23, 2022
1 parent 7d4c77d commit cdf89e2
Show file tree
Hide file tree
Showing 27 changed files with 47 additions and 47 deletions.
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/mszostok/codeowners-validator
module go.szostok.io/codeowners-validator

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions internal/check/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"sync"

"github.com/mszostok/codeowners-validator/internal/ptr"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/pkg/codeowners"
)

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

"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/check/avoid_shadowing.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"regexp"
"strings"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"github.com/pkg/errors"
"go.szostok.io/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/pkg/codeowners"
)

type AvoidShadowing struct{}
Expand Down
4 changes: 2 additions & 2 deletions internal/check/avoid_shadowing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/ptr"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions internal/check/duplicated_pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"strings"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/pkg/codeowners"
)

// DuplicatedPattern validates if CODEOWNERS file does not contain
Expand Down
2 changes: 1 addition & 1 deletion internal/check/duplicated_pattern_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion internal/check/file_exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/internal/ctxutil"

"github.com/mattn/go-zglob"
"github.com/pkg/errors"
Expand Down
4 changes: 2 additions & 2 deletions internal/check/file_exists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/ptr"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions internal/check/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"strings"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/pkg/codeowners"
)

var FixtureValidCODEOWNERS = `
Expand Down
4 changes: 2 additions & 2 deletions internal/check/not_owned_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path"
"strings"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/pkg/codeowners"

"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/check/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion internal/check/valid_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/mail"
"strings"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/internal/ctxutil"

"github.com/google/go-github/v41/github"
"github.com/pkg/errors"
Expand Down
4 changes: 2 additions & 2 deletions internal/check/valid_owner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"

"github.com/stretchr/testify/require"

"github.com/mszostok/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/internal/ptr"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/check/valid_syntax.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"strings"

"github.com/mszostok/codeowners-validator/internal/ctxutil"
"go.szostok.io/codeowners-validator/internal/ctxutil"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions internal/check/valid_syntax_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"testing"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/ptr"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/pkg/codeowners"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion internal/ctxutil/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

contextutil "github.com/mszostok/codeowners-validator/internal/ctxutil"
"github.com/stretchr/testify/assert"
contextutil "go.szostok.io/codeowners-validator/internal/ctxutil"
)

func TestShouldExit(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/envconfig/envconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/mszostok/codeowners-validator/internal/envconfig"
"go.szostok.io/codeowners-validator/internal/envconfig"

"github.com/stretchr/testify/require"
"gotest.tools/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/bradleyfalzon/ghinstallation/v2"

"github.com/mszostok/codeowners-validator/pkg/url"
"go.szostok.io/codeowners-validator/pkg/url"

"github.com/google/go-github/v41/github"
"golang.org/x/oauth2"
Expand Down
6 changes: 3 additions & 3 deletions internal/load/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package load
import (
"context"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/envconfig"
"github.com/mszostok/codeowners-validator/internal/github"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/envconfig"
"go.szostok.io/codeowners-validator/internal/github"

"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/printer/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/fatih/color"
"github.com/mszostok/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/check"
)

// writer used for test purpose
Expand Down
4 changes: 2 additions & 2 deletions internal/printer/tty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/ptr"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/ptr"

"github.com/sebdah/goldie/v2"
)
Expand Down
6 changes: 3 additions & 3 deletions internal/runner/runner_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"sync"
"time"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/printer"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/printer"
"go.szostok.io/codeowners-validator/pkg/codeowners"

"github.com/sirupsen/logrus"
)
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"path/filepath"
"syscall"

"github.com/mszostok/codeowners-validator/internal/check"
"github.com/mszostok/codeowners-validator/internal/envconfig"
"github.com/mszostok/codeowners-validator/internal/load"
"github.com/mszostok/codeowners-validator/internal/runner"
"github.com/mszostok/codeowners-validator/pkg/codeowners"
"github.com/mszostok/codeowners-validator/pkg/version"
"go.szostok.io/codeowners-validator/internal/check"
"go.szostok.io/codeowners-validator/internal/envconfig"
"go.szostok.io/codeowners-validator/internal/load"
"go.szostok.io/codeowners-validator/internal/runner"
"go.szostok.io/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/pkg/version"

"github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/codeowners/owners_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package codeowners_test
import (
"fmt"

"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/pkg/codeowners"
)

func ExampleNewFromPath() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/codeowners/owners_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path"
"testing"

"github.com/mszostok/codeowners-validator/pkg/codeowners"
"go.szostok.io/codeowners-validator/pkg/codeowners"
"github.com/spf13/afero"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/url/canonical_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package url_test
import (
"testing"

"github.com/mszostok/codeowners-validator/pkg/url"
"github.com/stretchr/testify/assert"
"go.szostok.io/codeowners-validator/pkg/url"
)

func TestCanonicalURLPath(t *testing.T) {
Expand Down

0 comments on commit cdf89e2

Please sign in to comment.