Skip to content

Commit b3048ce

Browse files
committed
feat!: migrate to Go module v2 with enhanced documentation
BREAKING CHANGE: Module path changed from github.com/M0Rf30/yap to github.com/M0Rf30/yap/v2 - Update module path to github.com/M0Rf30/yap/v2 for proper semantic versioning - Migrate all internal import paths to use v2 module references - Update Go version requirement to 1.24 for latest language features - Add comprehensive module-level documentation in doc.go - Ensure all 40+ Go source files use correct v2 import paths - Maintain full backward compatibility within v2 major version - Prepare module for pkg.go.dev discovery and distribution This migration enables proper semantic versioning and allows users to import stable v2 packages while maintaining the ability to release breaking changes in future major versions. Import paths now use: github.com/M0Rf30/yap/v2/pkg/*
1 parent 4df44bc commit b3048ce

44 files changed

Lines changed: 142 additions & 91 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/yap/command/build.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88

99
"github.com/spf13/cobra"
1010

11-
yapErrors "github.com/M0Rf30/yap/pkg/errors"
12-
"github.com/M0Rf30/yap/pkg/osutils"
13-
"github.com/M0Rf30/yap/pkg/parser"
14-
"github.com/M0Rf30/yap/pkg/project"
15-
"github.com/M0Rf30/yap/pkg/source"
11+
yapErrors "github.com/M0Rf30/yap/v2/pkg/errors"
12+
"github.com/M0Rf30/yap/v2/pkg/osutils"
13+
"github.com/M0Rf30/yap/v2/pkg/parser"
14+
"github.com/M0Rf30/yap/v2/pkg/project"
15+
"github.com/M0Rf30/yap/v2/pkg/source"
1616
)
1717

1818
// buildCmd represents the command to build the entire project.

cmd/yap/command/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package command
33
import (
44
"github.com/spf13/cobra"
55

6-
"github.com/M0Rf30/yap/pkg/osutils"
6+
"github.com/M0Rf30/yap/v2/pkg/osutils"
77
)
88

99
// completionCmd represents the completion command.

cmd/yap/command/help_formatting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/pterm/pterm"
99
"github.com/spf13/cobra"
1010

11-
"github.com/M0Rf30/yap/pkg/osutils"
11+
"github.com/M0Rf30/yap/v2/pkg/osutils"
1212
)
1313

1414
// SetupEnhancedHelp configures enhanced help formatting for commands.

cmd/yap/command/list_distros.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/pterm/pterm"
55
"github.com/spf13/cobra"
66

7-
"github.com/M0Rf30/yap/pkg/constants"
7+
"github.com/M0Rf30/yap/v2/pkg/constants"
88
)
99

1010
// listDistrosCmd represents the listDistros command.

cmd/yap/command/prepare.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55

66
"github.com/spf13/cobra"
77

8-
"github.com/M0Rf30/yap/pkg/osutils"
9-
"github.com/M0Rf30/yap/pkg/packer"
10-
"github.com/M0Rf30/yap/pkg/pkgbuild"
11-
"github.com/M0Rf30/yap/pkg/project"
8+
"github.com/M0Rf30/yap/v2/pkg/osutils"
9+
"github.com/M0Rf30/yap/v2/pkg/packer"
10+
"github.com/M0Rf30/yap/v2/pkg/pkgbuild"
11+
"github.com/M0Rf30/yap/v2/pkg/project"
1212
)
1313

1414
var (

cmd/yap/command/pull.go

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

66
"github.com/spf13/cobra"
77

8-
"github.com/M0Rf30/yap/pkg/osutils"
8+
"github.com/M0Rf30/yap/v2/pkg/osutils"
99
)
1010

1111
// pullCmd represents the pull command.

cmd/yap/command/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/pterm/pterm"
77
"github.com/spf13/cobra"
88

9-
"github.com/M0Rf30/yap/pkg/osutils"
9+
"github.com/M0Rf30/yap/v2/pkg/osutils"
1010
)
1111

1212
var (

cmd/yap/command/smart_help.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/pterm/pterm"
88
"github.com/spf13/cobra"
99

10-
"github.com/M0Rf30/yap/pkg/constants"
11-
"github.com/M0Rf30/yap/pkg/osutils"
10+
"github.com/M0Rf30/yap/v2/pkg/constants"
11+
"github.com/M0Rf30/yap/v2/pkg/osutils"
1212
)
1313

1414
const (

cmd/yap/command/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/pterm/pterm"
1010
"github.com/spf13/cobra"
1111

12-
"github.com/M0Rf30/yap/pkg/constants"
13-
"github.com/M0Rf30/yap/pkg/osutils"
12+
"github.com/M0Rf30/yap/v2/pkg/constants"
13+
"github.com/M0Rf30/yap/v2/pkg/osutils"
1414
)
1515

1616
// statusCmd provides system and environment information.

cmd/yap/command/validation.go

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

1010
"github.com/spf13/cobra"
1111

12-
"github.com/M0Rf30/yap/pkg/constants"
13-
"github.com/M0Rf30/yap/pkg/osutils"
12+
"github.com/M0Rf30/yap/v2/pkg/constants"
13+
"github.com/M0Rf30/yap/v2/pkg/osutils"
1414
)
1515

1616
// Static error definitions to satisfy err113 linter.

0 commit comments

Comments
 (0)