Bump declared module and internal usage to /v3/

This commit is contained in:
2022-09-12 07:51:51 -04:00
parent 0a88df4e46
commit 93a3190684
22 changed files with 27 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ import (
"path/filepath"
"strings"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
const (
@@ -132,10 +132,10 @@ func TestActionFunc(c *cli.Context) error {
tags := c.String("tags")
for _, pkg := range c.StringSlice("packages") {
packageName := "github.com/urfave/cli/v2"
packageName := "github.com/urfave/cli/v3"
if pkg != "cli" {
packageName = fmt.Sprintf("github.com/urfave/cli/v2/%s", pkg)
packageName = fmt.Sprintf("github.com/urfave/cli/v3/%s", pkg)
}
if err := runCmd(

View File

@@ -3,7 +3,7 @@
package main
import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
func main() {

View File

@@ -13,8 +13,8 @@ import (
"syscall"
"text/template"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3"
"github.com/urfave/cli/v3/internal/genflags"
"gopkg.in/yaml.v3"
)

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3/internal/genflags"
)
func TestTypeName(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3/internal/genflags"
)
func TestSpec_SortedFlagTypes(t *testing.T) {