From 7b0121c848eede3beb177bca1176e333c477f03f Mon Sep 17 00:00:00 2001 From: ypjama <3822534+ypjama@users.noreply.github.com> Date: Sun, 15 Oct 2023 15:56:00 +0300 Subject: [PATCH] Change go module path --- .golangci.yml | 8 ++++---- cmd/conflictless/main.go | 2 +- go.mod | 2 +- internal/pkg/conflictless/changelog_test.go | 3 ++- internal/pkg/conflictless/data.go | 3 ++- internal/pkg/conflictless/generate.go | 3 ++- internal/pkg/conflictless/link_test.go | 3 ++- internal/pkg/conflictless/parse_test.go | 3 ++- pkg/schema/schema_test.go | 3 ++- 9 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7bdc7df..d6f5734 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -114,8 +114,8 @@ linters-settings: - '!$test' allow: - '$gostd' - - 'conflictless-keepachangelog/internal/pkg' - - 'conflictless-keepachangelog/pkg/schema' + - 'github.com/ypjama/conflictless-keepachangelog/internal/pkg' + - 'github.com/ypjama/conflictless-keepachangelog/pkg/schema' - 'github.com/xeipuuv/gojsonschema' - 'gopkg.in/yaml.v3' tests: @@ -123,6 +123,6 @@ linters-settings: - '$test' allow: - '$gostd' - - 'conflictless-keepachangelog/internal/pkg' - - 'conflictless-keepachangelog/pkg' + - 'github.com/ypjama/conflictless-keepachangelog/internal/pkg' + - 'github.com/ypjama/conflictless-keepachangelog/pkg' - 'github.com/stretchr/testify/assert' diff --git a/cmd/conflictless/main.go b/cmd/conflictless/main.go index 640424b..3efd216 100644 --- a/cmd/conflictless/main.go +++ b/cmd/conflictless/main.go @@ -1,6 +1,6 @@ package main -import "conflictless-keepachangelog/internal/pkg/conflictless" +import "github.com/ypjama/conflictless-keepachangelog/internal/pkg/conflictless" func main() { conflictless.CLI() diff --git a/go.mod b/go.mod index 0186b7a..8d9e6cf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module conflictless-keepachangelog +module github.com/ypjama/conflictless-keepachangelog go 1.21.3 diff --git a/internal/pkg/conflictless/changelog_test.go b/internal/pkg/conflictless/changelog_test.go index f6d8ed9..d2c465f 100644 --- a/internal/pkg/conflictless/changelog_test.go +++ b/internal/pkg/conflictless/changelog_test.go @@ -1,10 +1,11 @@ package conflictless_test import ( - "conflictless-keepachangelog/internal/pkg/conflictless" "os" "testing" + "github.com/ypjama/conflictless-keepachangelog/internal/pkg/conflictless" + "github.com/stretchr/testify/assert" ) diff --git a/internal/pkg/conflictless/data.go b/internal/pkg/conflictless/data.go index ca5583c..af07c61 100644 --- a/internal/pkg/conflictless/data.go +++ b/internal/pkg/conflictless/data.go @@ -2,11 +2,12 @@ package conflictless import ( "bufio" - "conflictless-keepachangelog/pkg/schema" "fmt" "io/fs" "os" "path/filepath" + + "github.com/ypjama/conflictless-keepachangelog/pkg/schema" ) func readChangeFiles(dir string) ([]fs.DirEntry, error) { diff --git a/internal/pkg/conflictless/generate.go b/internal/pkg/conflictless/generate.go index 68cb3ac..bf0d384 100644 --- a/internal/pkg/conflictless/generate.go +++ b/internal/pkg/conflictless/generate.go @@ -2,9 +2,10 @@ package conflictless import ( "bytes" - "conflictless-keepachangelog/pkg/schema" "fmt" "time" + + "github.com/ypjama/conflictless-keepachangelog/pkg/schema" ) func generate(cfg *Config) { diff --git a/internal/pkg/conflictless/link_test.go b/internal/pkg/conflictless/link_test.go index 07a7d6b..3ff6908 100644 --- a/internal/pkg/conflictless/link_test.go +++ b/internal/pkg/conflictless/link_test.go @@ -1,9 +1,10 @@ package conflictless_test import ( - "conflictless-keepachangelog/internal/pkg/conflictless" "testing" + "github.com/ypjama/conflictless-keepachangelog/internal/pkg/conflictless" + "github.com/stretchr/testify/assert" ) diff --git a/internal/pkg/conflictless/parse_test.go b/internal/pkg/conflictless/parse_test.go index ebeac3e..0cda6f5 100644 --- a/internal/pkg/conflictless/parse_test.go +++ b/internal/pkg/conflictless/parse_test.go @@ -1,10 +1,11 @@ package conflictless_test import ( - "conflictless-keepachangelog/internal/pkg/conflictless" "os" "testing" + "github.com/ypjama/conflictless-keepachangelog/internal/pkg/conflictless" + "github.com/stretchr/testify/assert" ) diff --git a/pkg/schema/schema_test.go b/pkg/schema/schema_test.go index d9b5291..8596a71 100644 --- a/pkg/schema/schema_test.go +++ b/pkg/schema/schema_test.go @@ -1,10 +1,11 @@ package schema_test import ( - "conflictless-keepachangelog/pkg/schema" "errors" "testing" + "github.com/ypjama/conflictless-keepachangelog/pkg/schema" + "github.com/stretchr/testify/assert" )