Skip to content

Commit 7bf47f4

Browse files
authored
feat!: update import path to v2 (#224)
Changes our import path to v2 in preperation for our v2 release. To handle this, change imports from `go.rgst.io/stencil` to `go.rgst.io/stencil/v2`.
1 parent 52cc567 commit 7bf47f4

Some content is hidden

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

49 files changed

+116
-116
lines changed

cmd/stencil/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package main
1919

2020
import (
2121
"github.com/urfave/cli/v2"
22-
"go.rgst.io/stencil/pkg/slogext"
22+
"go.rgst.io/stencil/v2/pkg/slogext"
2323
)
2424

2525
// NewCreateCommand returns a new urfave/cli.Command for the

cmd/stencil/create_module.go

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

2424
"github.com/pkg/errors"
2525
"github.com/urfave/cli/v2"
26-
"go.rgst.io/stencil/pkg/configuration"
27-
"go.rgst.io/stencil/pkg/slogext"
26+
"go.rgst.io/stencil/v2/pkg/configuration"
27+
"go.rgst.io/stencil/v2/pkg/slogext"
2828
"gopkg.in/yaml.v3"
2929
)
3030

cmd/stencil/create_module_test.go

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

99
"github.com/jaredallard/cmdexec"
1010
"github.com/urfave/cli/v2"
11-
"go.rgst.io/stencil/pkg/configuration"
12-
"go.rgst.io/stencil/pkg/slogext"
11+
"go.rgst.io/stencil/v2/pkg/configuration"
12+
"go.rgst.io/stencil/v2/pkg/slogext"
1313
"gotest.tools/v3/assert"
1414
"gotest.tools/v3/env"
1515
)

cmd/stencil/describe.go

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

2424
"github.com/pkg/errors"
2525
"github.com/urfave/cli/v2"
26-
"go.rgst.io/stencil/pkg/stencil"
26+
"go.rgst.io/stencil/v2/pkg/stencil"
2727
)
2828

2929
// NewDescribeCommand returns a new urfave/cli.Command for the describe

cmd/stencil/describe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"testing"
1212

1313
"github.com/jaredallard/vcs/resolver"
14-
"go.rgst.io/stencil/pkg/stencil"
14+
"go.rgst.io/stencil/v2/pkg/stencil"
1515
"gopkg.in/yaml.v3"
1616
"gotest.tools/v3/assert"
1717
"gotest.tools/v3/env"

cmd/stencil/lockfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package main
1818

1919
import (
2020
"github.com/urfave/cli/v2"
21-
"go.rgst.io/stencil/pkg/slogext"
21+
"go.rgst.io/stencil/v2/pkg/slogext"
2222
)
2323

2424
// NewLockfileCommand returns a new urfave/cli.Command for the

cmd/stencil/lockfile_prune.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import (
1919

2020
"github.com/pkg/errors"
2121
"github.com/urfave/cli/v2"
22-
"go.rgst.io/stencil/pkg/configuration"
23-
"go.rgst.io/stencil/pkg/slogext"
24-
"go.rgst.io/stencil/pkg/stencil"
22+
"go.rgst.io/stencil/v2/pkg/configuration"
23+
"go.rgst.io/stencil/v2/pkg/slogext"
24+
"go.rgst.io/stencil/v2/pkg/stencil"
2525
)
2626

2727
// NewLockfilePruneCommand returns a new urfave/cli.Command for the

cmd/stencil/lockfile_prune_test.go

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

8-
"go.rgst.io/stencil/pkg/slogext"
8+
"go.rgst.io/stencil/v2/pkg/slogext"
99
"gotest.tools/v3/assert"
1010
)
1111

cmd/stencil/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"context"
2020
"os"
2121

22-
"go.rgst.io/stencil/pkg/slogext"
22+
"go.rgst.io/stencil/v2/pkg/slogext"
2323
)
2424

2525
// entrypoint is the main entrypoint for the stencil CLI. It is

cmd/stencil/stencil.go

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

2323
"github.com/urfave/cli/v2"
2424

25-
"go.rgst.io/stencil/internal/cmd/stencil"
26-
"go.rgst.io/stencil/internal/version"
27-
"go.rgst.io/stencil/pkg/configuration"
28-
"go.rgst.io/stencil/pkg/slogext"
25+
"go.rgst.io/stencil/v2/internal/cmd/stencil"
26+
"go.rgst.io/stencil/v2/internal/version"
27+
"go.rgst.io/stencil/v2/pkg/configuration"
28+
"go.rgst.io/stencil/v2/pkg/slogext"
2929
)
3030

3131
// Set the version printer to do nothing but print the version.

cmd/stencil/stencil_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"testing"
55

6-
"go.rgst.io/stencil/pkg/slogext"
6+
"go.rgst.io/stencil/v2/pkg/slogext"
77
"gotest.tools/v3/assert"
88
)
99

cmd/stencil/upgrade.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
"fmt"
1919

2020
"github.com/urfave/cli/v2"
21-
"go.rgst.io/stencil/internal/cmd/stencil"
22-
"go.rgst.io/stencil/pkg/configuration"
23-
"go.rgst.io/stencil/pkg/slogext"
21+
"go.rgst.io/stencil/v2/internal/cmd/stencil"
22+
"go.rgst.io/stencil/v2/pkg/configuration"
23+
"go.rgst.io/stencil/v2/pkg/slogext"
2424
)
2525

2626
// NewUpgradeCommand returns a new urfave/cli.Command for the upgrade

cmd/stencil/upgrade_test.go

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

1010
"github.com/jaredallard/vcs/resolver"
11-
"go.rgst.io/stencil/pkg/configuration"
12-
"go.rgst.io/stencil/pkg/slogext"
13-
"go.rgst.io/stencil/pkg/stencil"
11+
"go.rgst.io/stencil/v2/pkg/configuration"
12+
"go.rgst.io/stencil/v2/pkg/slogext"
13+
"go.rgst.io/stencil/v2/pkg/stencil"
1414
"gopkg.in/yaml.v3"
1515
"gotest.tools/v3/assert"
1616
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.rgst.io/stencil
1+
module go.rgst.io/stencil/v2
22

33
go 1.23.4
44

internal/cmd/stencil/stencil.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828
"slices"
2929

3030
"github.com/jaredallard/vcs/resolver"
31-
"go.rgst.io/stencil/internal/codegen"
32-
"go.rgst.io/stencil/internal/modules"
33-
"go.rgst.io/stencil/internal/version"
34-
"go.rgst.io/stencil/pkg/configuration"
35-
"go.rgst.io/stencil/pkg/slogext"
36-
"go.rgst.io/stencil/pkg/stencil"
31+
"go.rgst.io/stencil/v2/internal/codegen"
32+
"go.rgst.io/stencil/v2/internal/modules"
33+
"go.rgst.io/stencil/v2/internal/version"
34+
"go.rgst.io/stencil/v2/pkg/configuration"
35+
"go.rgst.io/stencil/v2/pkg/slogext"
36+
"go.rgst.io/stencil/v2/pkg/stencil"
3737
"golang.org/x/mod/semver"
3838
)
3939

internal/cmd/stencil/stencil_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"testing"
99

1010
"github.com/jaredallard/vcs/resolver"
11-
"go.rgst.io/stencil/internal/modules"
12-
"go.rgst.io/stencil/pkg/configuration"
13-
"go.rgst.io/stencil/pkg/slogext"
14-
"go.rgst.io/stencil/pkg/stencil"
11+
"go.rgst.io/stencil/v2/internal/modules"
12+
"go.rgst.io/stencil/v2/pkg/configuration"
13+
"go.rgst.io/stencil/v2/pkg/slogext"
14+
"go.rgst.io/stencil/v2/pkg/stencil"
1515
"gotest.tools/v3/assert"
1616
)
1717

internal/codegen/blocks_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"testing"
77
"time"
88

9-
"go.rgst.io/stencil/internal/modules/modulestest"
10-
"go.rgst.io/stencil/internal/testing/testmemfs"
11-
"go.rgst.io/stencil/pkg/slogext"
9+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
10+
"go.rgst.io/stencil/v2/internal/testing/testmemfs"
11+
"go.rgst.io/stencil/v2/pkg/slogext"
1212
"gotest.tools/v3/assert"
1313
)
1414

internal/codegen/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"path/filepath"
2222
"time"
2323

24-
"go.rgst.io/stencil/pkg/slogext"
24+
"go.rgst.io/stencil/v2/pkg/slogext"
2525
)
2626

2727
// _ ensures that we implement the os.FileInfo interface

internal/codegen/stencil.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import (
3030
"github.com/go-git/go-billy/v5/util"
3131
"github.com/jaredallard/cmdexec"
3232
"github.com/pkg/errors"
33-
"go.rgst.io/stencil/internal/modules"
34-
"go.rgst.io/stencil/internal/modules/nativeext"
35-
"go.rgst.io/stencil/internal/version"
36-
"go.rgst.io/stencil/pkg/configuration"
37-
"go.rgst.io/stencil/pkg/extensions/apiv1"
38-
"go.rgst.io/stencil/pkg/slogext"
39-
"go.rgst.io/stencil/pkg/stencil"
33+
"go.rgst.io/stencil/v2/internal/modules"
34+
"go.rgst.io/stencil/v2/internal/modules/nativeext"
35+
"go.rgst.io/stencil/v2/internal/version"
36+
"go.rgst.io/stencil/v2/pkg/configuration"
37+
"go.rgst.io/stencil/v2/pkg/extensions/apiv1"
38+
"go.rgst.io/stencil/v2/pkg/slogext"
39+
"go.rgst.io/stencil/v2/pkg/stencil"
4040
)
4141

4242
// NewStencil creates a new, fully initialized Stencil renderer function

internal/codegen/stencil_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010

1111
"github.com/go-git/go-billy/v5/memfs"
1212
"github.com/jaredallard/vcs/resolver"
13-
"go.rgst.io/stencil/internal/modules"
14-
"go.rgst.io/stencil/internal/modules/modulestest"
15-
"go.rgst.io/stencil/internal/version"
16-
"go.rgst.io/stencil/pkg/configuration"
17-
"go.rgst.io/stencil/pkg/slogext"
18-
"go.rgst.io/stencil/pkg/stencil"
13+
"go.rgst.io/stencil/v2/internal/modules"
14+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
15+
"go.rgst.io/stencil/v2/internal/version"
16+
"go.rgst.io/stencil/v2/pkg/configuration"
17+
"go.rgst.io/stencil/v2/pkg/slogext"
18+
"go.rgst.io/stencil/v2/pkg/stencil"
1919
"gopkg.in/yaml.v3"
2020
"gotest.tools/v3/assert"
2121
)

internal/codegen/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"strings"
2626
"time"
2727

28-
"go.rgst.io/stencil/internal/modules"
29-
"go.rgst.io/stencil/pkg/slogext"
28+
"go.rgst.io/stencil/v2/internal/modules"
29+
"go.rgst.io/stencil/v2/pkg/slogext"
3030
)
3131

3232
// Template is a file that has been processed by stencil

internal/codegen/template_test.go

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

1010
_ "embed"
1111

12-
"go.rgst.io/stencil/internal/modules"
13-
"go.rgst.io/stencil/internal/modules/modulestest"
14-
"go.rgst.io/stencil/internal/testing/testmemfs"
15-
"go.rgst.io/stencil/pkg/configuration"
16-
"go.rgst.io/stencil/pkg/slogext"
12+
"go.rgst.io/stencil/v2/internal/modules"
13+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
14+
"go.rgst.io/stencil/v2/internal/testing/testmemfs"
15+
"go.rgst.io/stencil/v2/pkg/configuration"
16+
"go.rgst.io/stencil/v2/pkg/slogext"
1717
"gotest.tools/v3/assert"
1818
)
1919

internal/codegen/tpl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"fmt"
2323
"text/template"
2424

25-
"go.rgst.io/stencil/internal/modules/nativeext"
26-
"go.rgst.io/stencil/pkg/slogext"
25+
"go.rgst.io/stencil/v2/internal/modules/nativeext"
26+
"go.rgst.io/stencil/v2/pkg/slogext"
2727
)
2828

2929
// NewFuncMap returns the standard func map for a template

internal/codegen/tpl_file.go

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

1313
"github.com/go-git/go-billy/v5/osfs"
14-
"go.rgst.io/stencil/pkg/slogext"
15-
"go.rgst.io/stencil/pkg/stencil"
14+
"go.rgst.io/stencil/v2/pkg/slogext"
15+
"go.rgst.io/stencil/v2/pkg/stencil"
1616
)
1717

1818
// TplFile is the current file we're writing output to in a

internal/codegen/tpl_file_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"go.rgst.io/stencil/pkg/slogext"
8-
"go.rgst.io/stencil/pkg/stencil"
7+
"go.rgst.io/stencil/v2/pkg/slogext"
8+
"go.rgst.io/stencil/v2/pkg/stencil"
99
"gotest.tools/v3/assert"
1010
)
1111

internal/codegen/tpl_module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"strings"
2222
"sync"
2323

24-
"go.rgst.io/stencil/internal/modules"
25-
"go.rgst.io/stencil/pkg/slogext"
24+
"go.rgst.io/stencil/v2/internal/modules"
25+
"go.rgst.io/stencil/v2/pkg/slogext"
2626
)
2727

2828
// ErrStopProcessingTemplate is an error that can be returned to

internal/codegen/tpl_module_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"time"
77

88
"github.com/google/go-cmp/cmp"
9-
"go.rgst.io/stencil/internal/modules"
10-
"go.rgst.io/stencil/internal/modules/modulestest"
11-
"go.rgst.io/stencil/pkg/configuration"
12-
"go.rgst.io/stencil/pkg/slogext"
9+
"go.rgst.io/stencil/v2/internal/modules"
10+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
11+
"go.rgst.io/stencil/v2/pkg/configuration"
12+
"go.rgst.io/stencil/v2/pkg/slogext"
1313
"gotest.tools/v3/assert"
1414
)
1515

internal/codegen/tpl_stencil.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727
"github.com/davecgh/go-spew/spew"
2828
"github.com/go-git/go-billy/v5"
2929
"github.com/go-git/go-billy/v5/osfs"
30-
"go.rgst.io/stencil/pkg/configuration"
31-
"go.rgst.io/stencil/pkg/slogext"
30+
"go.rgst.io/stencil/v2/pkg/configuration"
31+
"go.rgst.io/stencil/v2/pkg/slogext"
3232
)
3333

3434
// TplStencil contains the global functions available to a template for

internal/codegen/tpl_stencil_arg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"context"
2323
"fmt"
2424

25-
"go.rgst.io/stencil/internal/dotnotation"
26-
"go.rgst.io/stencil/pkg/configuration"
25+
"go.rgst.io/stencil/v2/internal/dotnotation"
26+
"go.rgst.io/stencil/v2/pkg/configuration"
2727
)
2828

2929
// Arg returns the value of an argument in the project's manifest

internal/codegen/tpl_stencil_arg_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"reflect"
77
"testing"
88

9-
"go.rgst.io/stencil/internal/modules"
10-
"go.rgst.io/stencil/internal/modules/modulestest"
11-
"go.rgst.io/stencil/pkg/configuration"
12-
"go.rgst.io/stencil/pkg/slogext"
9+
"go.rgst.io/stencil/v2/internal/modules"
10+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
11+
"go.rgst.io/stencil/v2/pkg/configuration"
12+
"go.rgst.io/stencil/v2/pkg/slogext"
1313
)
1414

1515
type testTpl struct {

internal/codegen/tpl_stencil_test.go

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

1111
"github.com/go-git/go-billy/v5"
1212
"github.com/pkg/errors"
13-
"go.rgst.io/stencil/internal/modules"
14-
"go.rgst.io/stencil/internal/modules/modulestest"
15-
"go.rgst.io/stencil/pkg/configuration"
16-
"go.rgst.io/stencil/pkg/slogext"
13+
"go.rgst.io/stencil/v2/internal/modules"
14+
"go.rgst.io/stencil/v2/internal/modules/modulestest"
15+
"go.rgst.io/stencil/v2/pkg/configuration"
16+
"go.rgst.io/stencil/v2/pkg/slogext"
1717
"gotest.tools/v3/assert"
1818
)
1919

internal/codegen/values.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
gogit "github.com/go-git/go-git/v5"
2626
vcsgit "github.com/jaredallard/vcs/git"
2727
"github.com/jaredallard/vcs/resolver"
28-
"go.rgst.io/stencil/internal/modules"
29-
"go.rgst.io/stencil/internal/version"
30-
"go.rgst.io/stencil/pkg/configuration"
28+
"go.rgst.io/stencil/v2/internal/modules"
29+
"go.rgst.io/stencil/v2/internal/version"
30+
"go.rgst.io/stencil/v2/pkg/configuration"
3131
)
3232

3333
// runtimeVals contains information about the current state

0 commit comments

Comments
 (0)