Skip to content

Commit 11fffc1

Browse files
m7medVisionclaude
andcommitted
fix(module): add /v2 suffix to module path for major version compliance
Go's module system requires the module path to end in /v2 for major version 2+ (semantic import versioning), otherwise `go install ...@v2.0.0` fails with "invalid version" since go.mod doesn't match the tag's major version. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 38e2290 commit 11fffc1

16 files changed

Lines changed: 27 additions & 27 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ suggestions — one per line, ready to pipe into lazygit, fzf, or any TUI menu.
2222
## Installation
2323

2424
```bash
25-
go install github.com/m7medvision/lazycommit@latest
25+
go install github.com/m7medvision/lazycommit/v2@latest
2626
```
2727

2828
Or build from source:

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/spf13/cobra"
1010

11-
"github.com/m7medvision/lazycommit/internal/config"
11+
"github.com/m7medvision/lazycommit/v2/internal/config"
1212
)
1313

1414
func newConfigCmd(deps Deps) *cobra.Command {

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package cmd
55
import (
66
"github.com/spf13/cobra"
77

8-
"github.com/m7medvision/lazycommit/internal/app"
9-
"github.com/m7medvision/lazycommit/internal/config"
8+
"github.com/m7medvision/lazycommit/v2/internal/app"
9+
"github.com/m7medvision/lazycommit/v2/internal/config"
1010
)
1111

1212
// Deps is everything the commands need, wired by the composition root. Use

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/m7medvision/lazycommit
1+
module github.com/m7medvision/lazycommit/v2
22

33
go 1.25
44

internal/app/ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package app
66
import (
77
"context"
88

9-
"github.com/m7medvision/lazycommit/internal/domain"
9+
"github.com/m7medvision/lazycommit/v2/internal/domain"
1010
)
1111

1212
// Generator produces raw LLM output for a prompt. The commit/PR distinction

internal/app/suggest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"errors"
66
"fmt"
77

8-
"github.com/m7medvision/lazycommit/internal/domain"
8+
"github.com/m7medvision/lazycommit/v2/internal/domain"
99
)
1010

1111
// SuggestionsResult carries generated suggestions, or NoChanges when the

internal/app/suggest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/m7medvision/lazycommit/internal/domain"
9+
"github.com/m7medvision/lazycommit/v2/internal/domain"
1010
)
1111

1212
type fakeDiffSource struct {

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212

1313
"gopkg.in/yaml.v3"
1414

15-
"github.com/m7medvision/lazycommit/internal/app"
16-
"github.com/m7medvision/lazycommit/internal/domain"
15+
"github.com/m7medvision/lazycommit/v2/internal/app"
16+
"github.com/m7medvision/lazycommit/v2/internal/domain"
1717
)
1818

1919
const (

internal/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
"testing"
88

9-
"github.com/m7medvision/lazycommit/internal/domain"
9+
"github.com/m7medvision/lazycommit/v2/internal/domain"
1010
)
1111

1212
func writeFile(t *testing.T, path, content string) {

internal/llm/middleware/middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"fmt"
99
"time"
1010

11-
"github.com/m7medvision/lazycommit/internal/app"
12-
"github.com/m7medvision/lazycommit/internal/domain"
11+
"github.com/m7medvision/lazycommit/v2/internal/app"
12+
"github.com/m7medvision/lazycommit/v2/internal/domain"
1313
)
1414

1515
type timeoutGenerator struct {

0 commit comments

Comments
 (0)