Repository: editorconfig-checker/editorconfig-checker (go)

Issue:
Unable to `go run` v3 because module version does not tag version
The go module version of the v3 tags is still v2, making it impossible to use v3 via `go run` and likely also `go install`:

```bash
$ go run github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@v3 -help
go: github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@v3.0.1: github.com/editorconfig-checker/editorconfig-checker/v2@v3.0.1: invalid version: module path includes a major version suffix, so major version must match
```

BTW I totally blame this on golang which makes v2+ modules [so hard](https://github.com/golang/go/issues/31543).

Pull request:
fix: v3 prefix is required
Since that package is now a v3, it needs to be reflected in the `go.mod` file.

Closes #338

Patch:
diff --git a/README.md b/README.md
index 22c6164..301d10e 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
 [![ci](https://github.com/editorconfig-checker/editorconfig-checker/actions/workflows/ci.yml/badge.svg)](https://github.com/editorconfig-checker/editorconfig-checker/actions/workflows/ci.yml)
 [![codecov](https://codecov.io/gh/editorconfig-checker/editorconfig-checker/branch/main/graph/badge.svg)](https://codecov.io/gh/editorconfig-checker/editorconfig-checker)
 [![Hits-of-Code](https://hitsofcode.com/github/editorconfig-checker/editorconfig-checker)](https://hitsofcode.com/view/github/editorconfig-checker/editorconfig-checker)
-[![Go Report Card](https://goreportcard.com/badge/github.com/editorconfig-checker/editorconfig-checker/v2)](https://goreportcard.com/report/github.com/editorconfig-checker/editorconfig-checker/v2)
+[![Go Report Card](https://goreportcard.com/badge/github.com/editorconfig-checker/editorconfig-checker/v3)](https://goreportcard.com/report/github.com/editorconfig-checker/editorconfig-checker/v3)
 
 ![Logo](docs/logo.png)
 
@@ -66,7 +66,7 @@ tar xzf ec-$OS-$ARCH.tar.gz && \
 
 Grab a binary from the [release page](https://github.com/editorconfig-checker/editorconfig-checker/releases).
 
-If you have go installed you can run `go get github.com/editorconfig-checker/editorconfig-checker/v2` and run `make build` inside the project folder.
+If you have go installed you can run `go get github.com/editorconfig-checker/editorconfig-checker/v3` and run `make build` inside the project folder.
 This will place a binary called `ec` into the `bin` directory.
 
 If you are using Arch Linux, you can use [pacman](https://wiki.archlinux.org/title/Pacman) to install from [extra repository](https://archlinux.org/packages/extra/x86_64/editorconfig-checker/):
@@ -87,7 +87,7 @@ paru -S editorconfig-checker-git
 If go 1.16 or greater is installed, you can also install it globally via `go install`:
 
 ```shell
-go install github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@latest
+go install github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@latest
 ```
 
 ## Usage
diff --git a/cmd/editorconfig-checker/main.go b/cmd/editorconfig-checker/main.go
index efe9365..72961fd 100644
--- a/cmd/editorconfig-checker/main.go
+++ b/cmd/editorconfig-checker/main.go
@@ -6,12 +6,12 @@ import (
 	"fmt"
 	"os"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/error"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/files"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/logger"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/utils"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/validation"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/error"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/files"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/logger"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/utils"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/validation"
 )
 
 // version is used vor the help
diff --git a/go.mod b/go.mod
index 0e15ab8..c2ca5ee 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/editorconfig-checker/editorconfig-checker/v2
+module github.com/editorconfig-checker/editorconfig-checker/v3
 
 go 1.21
 
diff --git a/pkg/config/config.go b/pkg/config/config.go
index f1a0ab7..c76aaff 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -9,8 +9,8 @@ import (
 
 	"github.com/editorconfig/editorconfig-core-go/v2"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/logger"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/utils"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/logger"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/utils"
 )
 
 // DefaultExcludes is the regular expression for ignored files
diff --git a/pkg/error/error.go b/pkg/error/error.go
index 80c0601..294edf0 100644
--- a/pkg/error/error.go
+++ b/pkg/error/error.go
@@ -4,8 +4,8 @@ package error
 import (
 	"fmt"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/files"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/files"
 )
 
 // ValidationError represents one validation error
diff --git a/pkg/files/files.go b/pkg/files/files.go
index c6d4dc9..a527124 100644
--- a/pkg/files/files.go
+++ b/pkg/files/files.go
@@ -16,8 +16,8 @@ import (
 
 	"github.com/editorconfig/editorconfig-core-go/v2"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/utils"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/utils"
 )
 
 const DefaultMimeType = "application/octet-stream"
diff --git a/pkg/validation/validation.go b/pkg/validation/validation.go
index 3de9fc2..eb5a3ca 100644
--- a/pkg/validation/validation.go
+++ b/pkg/validation/validation.go
@@ -8,11 +8,11 @@ import (
 	"strconv"
 	"strings"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/encoding"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/error"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/files"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/validation/validators"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/encoding"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/error"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/files"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/validation/validators"
 	"github.com/editorconfig/editorconfig-core-go/v2"
 )
 
diff --git a/pkg/validation/validators/validators.go b/pkg/validation/validators/validators.go
index 61af677..14a0739 100644
--- a/pkg/validation/validators/validators.go
+++ b/pkg/validation/validators/validators.go
@@ -8,8 +8,8 @@ import (
 	"strings"
 	"unicode/utf8"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/utils"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/utils"
 )
 
 // Indentation validates a files indentation


Test patch:
diff --git a/pkg/error/error_test.go b/pkg/error/error_test.go
index 4549629..79e38d5 100644
--- a/pkg/error/error_test.go
+++ b/pkg/error/error_test.go
@@ -4,7 +4,7 @@ import (
 	"errors"
 	"testing"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
 )
 
 func TestGetErrorCount(t *testing.T) {
diff --git a/pkg/files/files_test.go b/pkg/files/files_test.go
index 28856df..c404d26 100644
--- a/pkg/files/files_test.go
+++ b/pkg/files/files_test.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
 )
 
 func TestGetContentType(t *testing.T) {
diff --git a/pkg/validation/validation_test.go b/pkg/validation/validation_test.go
index 7b12e57..fa19a13 100644
--- a/pkg/validation/validation_test.go
+++ b/pkg/validation/validation_test.go
@@ -3,7 +3,7 @@ package validation
 import (
 	"testing"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
 )
 
 func TestProcessValidation(t *testing.T) {
diff --git a/pkg/validation/validators/validators_test.go b/pkg/validation/validators/validators_test.go
index 9f8b9e0..feb7ca6 100644
--- a/pkg/validation/validators/validators_test.go
+++ b/pkg/validation/validators/validators_test.go
@@ -5,7 +5,7 @@ import (
 	"reflect"
 	"testing"
 
-	"github.com/editorconfig-checker/editorconfig-checker/v2/pkg/config"
+	"github.com/editorconfig-checker/editorconfig-checker/v3/pkg/config"
 )
 
 func TestFinalNewline(t *testing.T) {