File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 55
66linters :
77 enable :
8+ - depguard
89 - goimports
910 - gofmt
1011 - gofumpt
1112 - misspell
1213
1314linters-settings :
15+ depguard :
16+ rules :
17+ main :
18+ files :
19+ - " $all"
20+ - " !$test"
21+ - " !**/errors/*.go"
22+ deny :
23+ - pkg : " errors"
24+ desc : " Use github.com/go-task/task/v3/errors instead"
1425 goimports :
1526 local-prefixes : github.com/go-task
1627 gofmt :
Original file line number Diff line number Diff line change 11package main
22
33import (
4- "errors"
54 "fmt"
65 "os"
76 "os/exec"
@@ -12,6 +11,8 @@ import (
1211 "github.com/Masterminds/semver/v3"
1312 "github.com/otiai10/copy"
1413 "github.com/spf13/pflag"
14+
15+ "github.com/go-task/task/v3/errors"
1516)
1617
1718const (
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package execext
22
33import (
44 "context"
5- "errors"
65 "fmt"
76 "io"
87 "os"
@@ -14,6 +13,8 @@ import (
1413 "mvdan.cc/sh/v3/interp"
1514 "mvdan.cc/sh/v3/shell"
1615 "mvdan.cc/sh/v3/syntax"
16+
17+ "github.com/go-task/task/v3/errors"
1718)
1819
1920// RunCommandOptions is the options for the RunCommand func
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ package flags
22
33import (
44 "cmp"
5- "errors"
65 "log"
76 "os"
87 "strconv"
98 "time"
109
1110 "github.com/spf13/pflag"
1211
12+ "github.com/go-task/task/v3/errors"
1313 "github.com/go-task/task/v3/internal/experiments"
1414 "github.com/go-task/task/v3/taskfile/ast"
1515)
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package task
22
33import (
44 "context"
5- "errors"
65
6+ "github.com/go-task/task/v3/errors"
77 "github.com/go-task/task/v3/internal/env"
88 "github.com/go-task/task/v3/internal/execext"
99 "github.com/go-task/task/v3/internal/logger"
You can’t perform that action at this time.
0 commit comments