diff --git a/commands/app.go b/commands/app.go index 71813d1..eaf8c8b 100644 --- a/commands/app.go +++ b/commands/app.go @@ -3,8 +3,8 @@ package commands import ( "github.com/sirupsen/logrus" - "github.com/voxpupuli/jig/internal/bundle" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/bundle" + "github.com/voxpupuli/jig/v2/internal/config" ) type App struct { diff --git a/commands/build.go b/commands/build.go index e1947fa..db37a73 100644 --- a/commands/build.go +++ b/commands/build.go @@ -6,7 +6,7 @@ import ( "os" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/build" + "github.com/voxpupuli/jig/v2/internal/build" ) func (a *App) buildCmd() *cobra.Command { diff --git a/commands/convert.go b/commands/convert.go index 9a1d9c9..4b98e93 100644 --- a/commands/convert.go +++ b/commands/convert.go @@ -5,7 +5,7 @@ import ( "os" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/scaffold" ) func (a *App) convertCmd() *cobra.Command { diff --git a/commands/new.go b/commands/new.go index a10baa8..daeed28 100644 --- a/commands/new.go +++ b/commands/new.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/scaffold" ) func (a *App) newCmd() *cobra.Command { diff --git a/commands/release.go b/commands/release.go index 3e0a0b0..8c6c95b 100644 --- a/commands/release.go +++ b/commands/release.go @@ -6,8 +6,8 @@ import ( "os" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/forge" - "github.com/voxpupuli/jig/internal/release" + "github.com/voxpupuli/jig/v2/internal/forge" + "github.com/voxpupuli/jig/v2/internal/release" ) func (a *App) releaseCmd() *cobra.Command { diff --git a/commands/renew.go b/commands/renew.go index 4f802e3..7fdb9da 100644 --- a/commands/renew.go +++ b/commands/renew.go @@ -6,8 +6,8 @@ import ( "os" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/scaffold" ) func (a *App) renewCmd() *cobra.Command { diff --git a/commands/renew_test.go b/commands/renew_test.go index 5dc339b..6d0ad52 100644 --- a/commands/renew_test.go +++ b/commands/renew_test.go @@ -10,8 +10,8 @@ import ( git "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing/object" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/module" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/module" ) // moduleTemplateRepo builds a local git repository holding a module template diff --git a/commands/root.go b/commands/root.go index 7355c6a..ec0351e 100644 --- a/commands/root.go +++ b/commands/root.go @@ -6,7 +6,7 @@ import ( "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) func Execute() error { diff --git a/commands/templates.go b/commands/templates.go index 9e4b6dc..d9b2e79 100644 --- a/commands/templates.go +++ b/commands/templates.go @@ -8,8 +8,8 @@ import ( "path/filepath" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/scaffold" - "github.com/voxpupuli/jig/internal/template" + "github.com/voxpupuli/jig/v2/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/template" ) func (a *App) templatesCmd() *cobra.Command { diff --git a/commands/templates_test.go b/commands/templates_test.go index df3fced..870f632 100644 --- a/commands/templates_test.go +++ b/commands/templates_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) // runTemplatesResolve executes `jig templates resolve ` with the given diff --git a/commands/templatesource.go b/commands/templatesource.go index 79416ed..073fb2e 100644 --- a/commands/templatesource.go +++ b/commands/templatesource.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/pflag" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/module" - "github.com/voxpupuli/jig/internal/remote" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/module" + "github.com/voxpupuli/jig/v2/internal/remote" ) // templateSource is a resolved template location: a local directory (possibly diff --git a/commands/templatesource_test.go b/commands/templatesource_test.go index 12134b5..56399f2 100644 --- a/commands/templatesource_test.go +++ b/commands/templatesource_test.go @@ -13,8 +13,8 @@ import ( "github.com/go-git/go-git/v5/plumbing/object" "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/module" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/module" ) func testApp(cfg config.Config) *App { diff --git a/go.mod b/go.mod index 4c017a3..8a3ce1f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/voxpupuli/jig +module github.com/voxpupuli/jig/v2 go 1.25.5 diff --git a/internal/build/build.go b/internal/build/build.go index 923b313..0ec352a 100644 --- a/internal/build/build.go +++ b/internal/build/build.go @@ -11,9 +11,9 @@ import ( "path/filepath" "strings" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/module" - "github.com/voxpupuli/jig/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/module" + "github.com/voxpupuli/jig/v2/internal/scaffold" ) func DoBuild(dir string) error { diff --git a/internal/build/build_test.go b/internal/build/build_test.go index f12be3c..6d213e7 100644 --- a/internal/build/build_test.go +++ b/internal/build/build_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) // makeBuildDir creates a minimal but realistic module directory suitable for diff --git a/internal/build/filter.go b/internal/build/filter.go index 54b60c2..24476d1 100644 --- a/internal/build/filter.go +++ b/internal/build/filter.go @@ -7,7 +7,7 @@ import ( "strings" gogitignore "github.com/go-git/go-git/v5/plumbing/format/gitignore" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) // specAllowlist is the set of files permitted in a published module per the diff --git a/internal/release/release.go b/internal/release/release.go index d60aac6..95c1406 100644 --- a/internal/release/release.go +++ b/internal/release/release.go @@ -7,10 +7,10 @@ import ( "path/filepath" "regexp" - "github.com/voxpupuli/jig/internal/build" - "github.com/voxpupuli/jig/internal/forge" - "github.com/voxpupuli/jig/internal/module" - "github.com/voxpupuli/jig/internal/scaffold" + "github.com/voxpupuli/jig/v2/internal/build" + "github.com/voxpupuli/jig/v2/internal/forge" + "github.com/voxpupuli/jig/v2/internal/module" + "github.com/voxpupuli/jig/v2/internal/scaffold" ) // Options controls the behaviour of DoRelease. diff --git a/internal/scaffold/convert.go b/internal/scaffold/convert.go index bbb9642..f4b1f1a 100644 --- a/internal/scaffold/convert.go +++ b/internal/scaffold/convert.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/voxpupuli/jig/internal/template" + "github.com/voxpupuli/jig/v2/internal/template" ) func ConvertModule(targetDir string) error { diff --git a/internal/scaffold/module.go b/internal/scaffold/module.go index d4992ff..c425e9b 100644 --- a/internal/scaffold/module.go +++ b/internal/scaffold/module.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/voxpupuli/jig/internal/config" - "github.com/voxpupuli/jig/internal/module" + "github.com/voxpupuli/jig/v2/internal/config" + "github.com/voxpupuli/jig/v2/internal/module" ) func NewModule(opts Options) error { diff --git a/internal/scaffold/module_test.go b/internal/scaffold/module_test.go index 464ce4e..6237970 100644 --- a/internal/scaffold/module_test.go +++ b/internal/scaffold/module_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) func TestNewModule(t *testing.T) { diff --git a/internal/scaffold/renew.go b/internal/scaffold/renew.go index cdef732..c0f968a 100644 --- a/internal/scaffold/renew.go +++ b/internal/scaffold/renew.go @@ -10,7 +10,7 @@ import ( gogitignore "github.com/go-git/go-git/v5/plumbing/format/gitignore" "github.com/sergi/go-diff/diffmatchpatch" - "github.com/voxpupuli/jig/internal/config" + "github.com/voxpupuli/jig/v2/internal/config" ) // RenewOptions controls Renew. Paths is the [renew] allowlist from jig.toml: diff --git a/internal/scaffold/scaffold.go b/internal/scaffold/scaffold.go index fd77381..a63abaf 100644 --- a/internal/scaffold/scaffold.go +++ b/internal/scaffold/scaffold.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/voxpupuli/jig/internal/module" - "github.com/voxpupuli/jig/internal/template" + "github.com/voxpupuli/jig/v2/internal/module" + "github.com/voxpupuli/jig/v2/internal/template" ) // Renderer is the interface satisfied by *template.Renderer. Declared here diff --git a/main.go b/main.go index a23f45b..897de8b 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ package main import ( "os" - "github.com/voxpupuli/jig/commands" + "github.com/voxpupuli/jig/v2/commands" ) func main() {