diff --git a/cmd/stencil/create.go b/cmd/stencil/create.go index b1e0cdd7..e4ff1fad 100644 --- a/cmd/stencil/create.go +++ b/cmd/stencil/create.go @@ -19,7 +19,7 @@ package main import ( "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // NewCreateCommand returns a new urfave/cli.Command for the diff --git a/cmd/stencil/create_module.go b/cmd/stencil/create_module.go index 94900817..852ca28b 100644 --- a/cmd/stencil/create_module.go +++ b/cmd/stencil/create_module.go @@ -23,8 +23,8 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gopkg.in/yaml.v3" ) diff --git a/cmd/stencil/create_module_test.go b/cmd/stencil/create_module_test.go index 7243ac7b..d1a06e19 100644 --- a/cmd/stencil/create_module_test.go +++ b/cmd/stencil/create_module_test.go @@ -8,8 +8,8 @@ import ( "github.com/jaredallard/cmdexec" "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" "gotest.tools/v3/env" ) diff --git a/cmd/stencil/describe.go b/cmd/stencil/describe.go index 8d750e97..b5032e89 100644 --- a/cmd/stencil/describe.go +++ b/cmd/stencil/describe.go @@ -23,7 +23,7 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/stencil" ) // NewDescribeCommand returns a new urfave/cli.Command for the describe diff --git a/cmd/stencil/describe_test.go b/cmd/stencil/describe_test.go index 6215b363..ddb52838 100644 --- a/cmd/stencil/describe_test.go +++ b/cmd/stencil/describe_test.go @@ -11,7 +11,7 @@ import ( "testing" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/stencil" "gopkg.in/yaml.v3" "gotest.tools/v3/assert" "gotest.tools/v3/env" diff --git a/cmd/stencil/lockfile.go b/cmd/stencil/lockfile.go index 1dbdce97..b095414c 100644 --- a/cmd/stencil/lockfile.go +++ b/cmd/stencil/lockfile.go @@ -18,7 +18,7 @@ package main import ( "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // NewLockfileCommand returns a new urfave/cli.Command for the diff --git a/cmd/stencil/lockfile_prune.go b/cmd/stencil/lockfile_prune.go index 81734548..6ec11cf2 100644 --- a/cmd/stencil/lockfile_prune.go +++ b/cmd/stencil/lockfile_prune.go @@ -19,9 +19,9 @@ import ( "github.com/pkg/errors" "github.com/urfave/cli/v2" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" ) // NewLockfilePruneCommand returns a new urfave/cli.Command for the diff --git a/cmd/stencil/lockfile_prune_test.go b/cmd/stencil/lockfile_prune_test.go index 835b2934..a9da8c25 100644 --- a/cmd/stencil/lockfile_prune_test.go +++ b/cmd/stencil/lockfile_prune_test.go @@ -5,7 +5,7 @@ import ( "path" "testing" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/cmd/stencil/main.go b/cmd/stencil/main.go index 3d112b0f..a167edf2 100644 --- a/cmd/stencil/main.go +++ b/cmd/stencil/main.go @@ -19,7 +19,7 @@ import ( "context" "os" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // entrypoint is the main entrypoint for the stencil CLI. It is diff --git a/cmd/stencil/stencil.go b/cmd/stencil/stencil.go index 74ca6b1c..fef39658 100644 --- a/cmd/stencil/stencil.go +++ b/cmd/stencil/stencil.go @@ -22,10 +22,10 @@ import ( "github.com/urfave/cli/v2" - "go.rgst.io/stencil/internal/cmd/stencil" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/cmd/stencil" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" ) // Set the version printer to do nothing but print the version. diff --git a/cmd/stencil/stencil_test.go b/cmd/stencil/stencil_test.go index 55f5952f..28a9da2b 100644 --- a/cmd/stencil/stencil_test.go +++ b/cmd/stencil/stencil_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/cmd/stencil/upgrade.go b/cmd/stencil/upgrade.go index 3205e86e..d7b39c78 100644 --- a/cmd/stencil/upgrade.go +++ b/cmd/stencil/upgrade.go @@ -18,9 +18,9 @@ import ( "fmt" "github.com/urfave/cli/v2" - "go.rgst.io/stencil/internal/cmd/stencil" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/cmd/stencil" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" ) // NewUpgradeCommand returns a new urfave/cli.Command for the upgrade diff --git a/cmd/stencil/upgrade_test.go b/cmd/stencil/upgrade_test.go index c1c79a65..932a73d5 100644 --- a/cmd/stencil/upgrade_test.go +++ b/cmd/stencil/upgrade_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" "gopkg.in/yaml.v3" "gotest.tools/v3/assert" ) diff --git a/go.mod b/go.mod index 8fbc716e..1898edfb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.rgst.io/stencil +module go.rgst.io/stencil/v2 go 1.23.4 diff --git a/internal/cmd/stencil/stencil.go b/internal/cmd/stencil/stencil.go index c0618907..cb40f3cc 100644 --- a/internal/cmd/stencil/stencil.go +++ b/internal/cmd/stencil/stencil.go @@ -28,12 +28,12 @@ import ( "slices" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/codegen" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/internal/codegen" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" "golang.org/x/mod/semver" ) diff --git a/internal/cmd/stencil/stencil_test.go b/internal/cmd/stencil/stencil_test.go index ae88829c..0272f09f 100644 --- a/internal/cmd/stencil/stencil_test.go +++ b/internal/cmd/stencil/stencil_test.go @@ -8,10 +8,10 @@ import ( "testing" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/blocks_test.go b/internal/codegen/blocks_test.go index b4885cd6..7a60adde 100644 --- a/internal/codegen/blocks_test.go +++ b/internal/codegen/blocks_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/internal/testing/testmemfs" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/internal/testing/testmemfs" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/file.go b/internal/codegen/file.go index 8d20ecc7..60b6e16c 100644 --- a/internal/codegen/file.go +++ b/internal/codegen/file.go @@ -21,7 +21,7 @@ import ( "path/filepath" "time" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // _ ensures that we implement the os.FileInfo interface diff --git a/internal/codegen/stencil.go b/internal/codegen/stencil.go index e605c860..de0aaf6c 100644 --- a/internal/codegen/stencil.go +++ b/internal/codegen/stencil.go @@ -30,13 +30,13 @@ import ( "github.com/go-git/go-billy/v5/util" "github.com/jaredallard/cmdexec" "github.com/pkg/errors" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/nativeext" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/extensions/apiv1" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/nativeext" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/extensions/apiv1" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" ) // NewStencil creates a new, fully initialized Stencil renderer function diff --git a/internal/codegen/stencil_test.go b/internal/codegen/stencil_test.go index a6d34af8..1c33813b 100644 --- a/internal/codegen/stencil_test.go +++ b/internal/codegen/stencil_test.go @@ -10,12 +10,12 @@ import ( "github.com/go-git/go-billy/v5/memfs" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" "gopkg.in/yaml.v3" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/template.go b/internal/codegen/template.go index 10eb249e..628187c0 100644 --- a/internal/codegen/template.go +++ b/internal/codegen/template.go @@ -25,8 +25,8 @@ import ( "strings" "time" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/pkg/slogext" ) // Template is a file that has been processed by stencil diff --git a/internal/codegen/template_test.go b/internal/codegen/template_test.go index 0b1d9d60..64b94608 100644 --- a/internal/codegen/template_test.go +++ b/internal/codegen/template_test.go @@ -9,11 +9,11 @@ import ( _ "embed" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/internal/testing/testmemfs" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/internal/testing/testmemfs" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/tpl.go b/internal/codegen/tpl.go index f20d8a5c..9d40fc1a 100644 --- a/internal/codegen/tpl.go +++ b/internal/codegen/tpl.go @@ -22,8 +22,8 @@ import ( "fmt" "text/template" - "go.rgst.io/stencil/internal/modules/nativeext" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules/nativeext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // NewFuncMap returns the standard func map for a template diff --git a/internal/codegen/tpl_file.go b/internal/codegen/tpl_file.go index 5b72ff39..fb0079c5 100644 --- a/internal/codegen/tpl_file.go +++ b/internal/codegen/tpl_file.go @@ -11,8 +11,8 @@ import ( "time" "github.com/go-git/go-billy/v5/osfs" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" ) // TplFile is the current file we're writing output to in a diff --git a/internal/codegen/tpl_file_test.go b/internal/codegen/tpl_file_test.go index 7f43e066..d00c8a9e 100644 --- a/internal/codegen/tpl_file_test.go +++ b/internal/codegen/tpl_file_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "go.rgst.io/stencil/pkg/slogext" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/stencil" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/tpl_module.go b/internal/codegen/tpl_module.go index 0c72f911..b61f7357 100644 --- a/internal/codegen/tpl_module.go +++ b/internal/codegen/tpl_module.go @@ -21,8 +21,8 @@ import ( "strings" "sync" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/pkg/slogext" ) // ErrStopProcessingTemplate is an error that can be returned to diff --git a/internal/codegen/tpl_module_test.go b/internal/codegen/tpl_module_test.go index af4587bd..c1a44371 100644 --- a/internal/codegen/tpl_module_test.go +++ b/internal/codegen/tpl_module_test.go @@ -6,10 +6,10 @@ import ( "time" "github.com/google/go-cmp/cmp" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/tpl_stencil.go b/internal/codegen/tpl_stencil.go index 82495359..d055642b 100644 --- a/internal/codegen/tpl_stencil.go +++ b/internal/codegen/tpl_stencil.go @@ -27,8 +27,8 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/go-git/go-billy/v5" "github.com/go-git/go-billy/v5/osfs" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" ) // TplStencil contains the global functions available to a template for diff --git a/internal/codegen/tpl_stencil_arg.go b/internal/codegen/tpl_stencil_arg.go index c552036b..37fdd052 100644 --- a/internal/codegen/tpl_stencil_arg.go +++ b/internal/codegen/tpl_stencil_arg.go @@ -22,8 +22,8 @@ import ( "context" "fmt" - "go.rgst.io/stencil/internal/dotnotation" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/internal/dotnotation" + "go.rgst.io/stencil/v2/pkg/configuration" ) // Arg returns the value of an argument in the project's manifest diff --git a/internal/codegen/tpl_stencil_arg_test.go b/internal/codegen/tpl_stencil_arg_test.go index a0e5eaec..f835acf7 100644 --- a/internal/codegen/tpl_stencil_arg_test.go +++ b/internal/codegen/tpl_stencil_arg_test.go @@ -6,10 +6,10 @@ import ( "reflect" "testing" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" ) type testTpl struct { diff --git a/internal/codegen/tpl_stencil_test.go b/internal/codegen/tpl_stencil_test.go index ddc0a35d..462849be 100644 --- a/internal/codegen/tpl_stencil_test.go +++ b/internal/codegen/tpl_stencil_test.go @@ -10,10 +10,10 @@ import ( "github.com/go-git/go-billy/v5" "github.com/pkg/errors" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/internal/codegen/values.go b/internal/codegen/values.go index 88773294..99b19ef2 100644 --- a/internal/codegen/values.go +++ b/internal/codegen/values.go @@ -25,9 +25,9 @@ import ( gogit "github.com/go-git/go-git/v5" vcsgit "github.com/jaredallard/vcs/git" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" ) // runtimeVals contains information about the current state diff --git a/internal/codegen/values_test.go b/internal/codegen/values_test.go index 469aeb03..48d6fd02 100644 --- a/internal/codegen/values_test.go +++ b/internal/codegen/values_test.go @@ -10,11 +10,11 @@ import ( "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/internal/version" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/internal/version" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" "gotest.tools/v3/env" ) diff --git a/internal/modules/module.go b/internal/modules/module.go index 3043d555..fe1ab286 100644 --- a/internal/modules/module.go +++ b/internal/modules/module.go @@ -32,8 +32,8 @@ import ( "github.com/jaredallard/vcs/git" "github.com/jaredallard/vcs/resolver" "github.com/pkg/errors" - "go.rgst.io/stencil/internal/modules/nativeext" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/internal/modules/nativeext" + "go.rgst.io/stencil/v2/pkg/configuration" "gopkg.in/yaml.v3" ) diff --git a/internal/modules/module_test.go b/internal/modules/module_test.go index f9da195c..484acf7a 100644 --- a/internal/modules/module_test.go +++ b/internal/modules/module_test.go @@ -7,11 +7,11 @@ import ( "testing" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/internal/modules/modulestest" - "go.rgst.io/stencil/internal/testing/testmemfs" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/internal/modules/modulestest" + "go.rgst.io/stencil/v2/internal/testing/testmemfs" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/internal/modules/modules.go b/internal/modules/modules.go index 0557b5ce..6bbf1b19 100644 --- a/internal/modules/modules.go +++ b/internal/modules/modules.go @@ -29,8 +29,8 @@ import ( "github.com/Masterminds/semver/v3" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/pkg/configuration" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/slogext" ) // resolvedModule is used to keep track of a module during the resolution diff --git a/internal/modules/modulestest/modulestest.go b/internal/modules/modulestest/modulestest.go index 1c7d1f70..f472e60c 100644 --- a/internal/modules/modulestest/modulestest.go +++ b/internal/modules/modulestest/modulestest.go @@ -30,8 +30,8 @@ import ( "github.com/go-git/go-billy/v5/memfs" "github.com/jaredallard/vcs/resolver" "github.com/pkg/errors" - "go.rgst.io/stencil/internal/modules" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/internal/modules" + "go.rgst.io/stencil/v2/pkg/configuration" "gopkg.in/yaml.v3" ) diff --git a/internal/modules/nativeext/apiv1/client.go b/internal/modules/nativeext/apiv1/client.go index e0a238de..35816c21 100644 --- a/internal/modules/nativeext/apiv1/client.go +++ b/internal/modules/nativeext/apiv1/client.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-plugin" "github.com/pkg/errors" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // IDEA(jaredallard): Cleanup this to return a Implementation backed by a transport as well. diff --git a/internal/modules/nativeext/apiv1/rpc.go b/internal/modules/nativeext/apiv1/rpc.go index c402b903..5407e1a1 100644 --- a/internal/modules/nativeext/apiv1/rpc.go +++ b/internal/modules/nativeext/apiv1/rpc.go @@ -8,7 +8,7 @@ import ( "net/rpc" "github.com/hashicorp/go-plugin" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // ExtensionPlugin is the high level plugin used by go-plugin diff --git a/internal/modules/nativeext/apiv1/rpc_transport_client.go b/internal/modules/nativeext/apiv1/rpc_transport_client.go index c390a144..fbc34d59 100644 --- a/internal/modules/nativeext/apiv1/rpc_transport_client.go +++ b/internal/modules/nativeext/apiv1/rpc_transport_client.go @@ -7,7 +7,7 @@ package apiv1 import ( "net/rpc" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // _ is a compile time assertion we implement the interface diff --git a/internal/modules/nativeext/apiv1/rpc_transport_server.go b/internal/modules/nativeext/apiv1/rpc_transport_server.go index d4e20489..f3484993 100644 --- a/internal/modules/nativeext/apiv1/rpc_transport_server.go +++ b/internal/modules/nativeext/apiv1/rpc_transport_server.go @@ -5,7 +5,7 @@ package apiv1 import ( - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // rpcTransportServer implements a rpc backed implementation diff --git a/internal/modules/nativeext/apiv1/server.go b/internal/modules/nativeext/apiv1/server.go index 13d261cb..d6f2ffa0 100644 --- a/internal/modules/nativeext/apiv1/server.go +++ b/internal/modules/nativeext/apiv1/server.go @@ -8,7 +8,7 @@ package apiv1 import ( "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-plugin" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) // NewHandshake returns a plugin.HandshakeConfig for diff --git a/internal/modules/nativeext/nativeext.go b/internal/modules/nativeext/nativeext.go index fcc47372..7e3345ac 100644 --- a/internal/modules/nativeext/nativeext.go +++ b/internal/modules/nativeext/nativeext.go @@ -34,8 +34,8 @@ import ( "github.com/jaredallard/vcs/releases" "github.com/jaredallard/vcs/resolver" "github.com/rogpeppe/go-internal/lockedfile" - "go.rgst.io/stencil/internal/modules/nativeext/apiv1" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules/nativeext/apiv1" + "go.rgst.io/stencil/v2/pkg/slogext" ) // generatedTemplateFunc is the underlying type of a function diff --git a/internal/modules/nativeext/nativeext_test.go b/internal/modules/nativeext/nativeext_test.go index b90b5f82..d548f42e 100644 --- a/internal/modules/nativeext/nativeext_test.go +++ b/internal/modules/nativeext/nativeext_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/jaredallard/vcs/resolver" - "go.rgst.io/stencil/internal/modules/nativeext" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/internal/modules/nativeext" + "go.rgst.io/stencil/v2/pkg/slogext" "gotest.tools/v3/assert" ) diff --git a/pkg/configuration/configuration_test.go b/pkg/configuration/configuration_test.go index bd0c3631..5ad4ed1f 100644 --- a/pkg/configuration/configuration_test.go +++ b/pkg/configuration/configuration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/configuration" "gotest.tools/v3/assert" "gotest.tools/v3/env" ) diff --git a/pkg/configuration/type_test.go b/pkg/configuration/type_test.go index 2a2ea348..1985a2fa 100644 --- a/pkg/configuration/type_test.go +++ b/pkg/configuration/type_test.go @@ -6,7 +6,7 @@ import ( "gopkg.in/yaml.v3" "gotest.tools/v3/assert" - "go.rgst.io/stencil/pkg/configuration" + "go.rgst.io/stencil/v2/pkg/configuration" ) func TestTemplateRepositoryType(t *testing.T) { diff --git a/pkg/extensions/apiv1/apiv1.go b/pkg/extensions/apiv1/apiv1.go index 8b08cb8f..6f5822cf 100644 --- a/pkg/extensions/apiv1/apiv1.go +++ b/pkg/extensions/apiv1/apiv1.go @@ -16,7 +16,7 @@ // implement. package apiv1 -import "go.rgst.io/stencil/internal/modules/nativeext/apiv1" +import "go.rgst.io/stencil/v2/internal/modules/nativeext/apiv1" const ( Version = apiv1.Version diff --git a/pkg/stencil/lockfile_test.go b/pkg/stencil/lockfile_test.go index 83946bd5..0fd224d1 100644 --- a/pkg/stencil/lockfile_test.go +++ b/pkg/stencil/lockfile_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "go.rgst.io/stencil/pkg/stencil" + "go.rgst.io/stencil/v2/pkg/stencil" "gotest.tools/v3/assert" ) diff --git a/tools/docgen/docgen.go b/tools/docgen/docgen.go index 9ddc0803..7dd4e553 100644 --- a/tools/docgen/docgen.go +++ b/tools/docgen/docgen.go @@ -32,7 +32,7 @@ import ( "github.com/princjef/gomarkdoc" "github.com/princjef/gomarkdoc/lang" "github.com/princjef/gomarkdoc/logger" - "go.rgst.io/stencil/pkg/slogext" + "go.rgst.io/stencil/v2/pkg/slogext" ) //go:embed function.md.tpl