diff --git a/README.md b/README.md index 778f365..a99ecb7 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ jobs: # Install gotestfmt on the VM running the action. - name: Set up gotestfmt - uses: haveyoudebuggedit/gotestfmt-action@v1 + uses: haveyoudebuggedit/gotestfmt-action@v2 with: # Optional: pass GITHUB_TOKEN to avoid rate limiting. token: ${{ secrets.GITHUB_TOKEN }} diff --git a/cmd/gotestfmt/main.go b/cmd/gotestfmt/main.go index ee386ab..e4d51bf 100644 --- a/cmd/gotestfmt/main.go +++ b/cmd/gotestfmt/main.go @@ -6,7 +6,7 @@ import ( "os" "path/filepath" - "github.com/haveyoudebuggedit/gotestfmt" + "github.com/haveyoudebuggedit/gotestfmt/v2" ) // ciEnvironments maps environment variables to directories to check for templates. diff --git a/go.mod b/go.mod index de529ce..656361c 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/haveyoudebuggedit/gotestfmt +module github.com/haveyoudebuggedit/gotestfmt/v2 go 1.16 diff --git a/gotestfmt.go b/gotestfmt.go index e8e4b99..1fbb25d 100644 --- a/gotestfmt.go +++ b/gotestfmt.go @@ -7,9 +7,9 @@ import ( "io/ioutil" "path" - "github.com/haveyoudebuggedit/gotestfmt/parser" - "github.com/haveyoudebuggedit/gotestfmt/renderer" - "github.com/haveyoudebuggedit/gotestfmt/tokenizer" + "github.com/haveyoudebuggedit/gotestfmt/v2/parser" + "github.com/haveyoudebuggedit/gotestfmt/v2/renderer" + "github.com/haveyoudebuggedit/gotestfmt/v2/tokenizer" ) //go:embed .gotestfmt/*.gotpl diff --git a/parser/parse.go b/parser/parse.go index c87555b..8fb866d 100644 --- a/parser/parse.go +++ b/parser/parse.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/haveyoudebuggedit/gotestfmt/tokenizer" + "github.com/haveyoudebuggedit/gotestfmt/v2/tokenizer" ) // Parse creates a new formatter that reads the go test output from the input reader, formats it and writes diff --git a/parser/parse_test.go b/parser/parse_test.go index 61f9eda..d447ee5 100644 --- a/parser/parse_test.go +++ b/parser/parse_test.go @@ -9,9 +9,9 @@ import ( "strings" "testing" - "github.com/haveyoudebuggedit/gotestfmt/parser" - "github.com/haveyoudebuggedit/gotestfmt/testutil" - "github.com/haveyoudebuggedit/gotestfmt/tokenizer" + "github.com/haveyoudebuggedit/gotestfmt/v2/parser" + "github.com/haveyoudebuggedit/gotestfmt/v2/testutil" + "github.com/haveyoudebuggedit/gotestfmt/v2/tokenizer" ) // TestParse takes the *.tokenizer.json and *.parser.json files in ../testdata, runs the tokenizer files as input diff --git a/renderer/renderer.go b/renderer/renderer.go index 94b2fe8..4ed0ae2 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -5,7 +5,7 @@ import ( "fmt" "text/template" - "github.com/haveyoudebuggedit/gotestfmt/parser" + "github.com/haveyoudebuggedit/gotestfmt/v2/parser" ) // Render takes the two input channels from the parser and renders them into text output fragments. diff --git a/tokenizer/tokenizer_test.go b/tokenizer/tokenizer_test.go index fb5278a..6a28abf 100644 --- a/tokenizer/tokenizer_test.go +++ b/tokenizer/tokenizer_test.go @@ -11,8 +11,8 @@ import ( "strings" "testing" - "github.com/haveyoudebuggedit/gotestfmt/testutil" - "github.com/haveyoudebuggedit/gotestfmt/tokenizer" + "github.com/haveyoudebuggedit/gotestfmt/v2/testutil" + "github.com/haveyoudebuggedit/gotestfmt/v2/tokenizer" ) // TestTokenization reads the *.txt and *.tokenizer.json files from the ../testdata directory, then runs