File tree 5 files changed +17
-4
lines changed
5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
linters :
7
7
enable :
8
+ - depguard
8
9
- goimports
9
10
- gofmt
10
11
- gofumpt
11
12
- misspell
12
13
13
14
linters-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"
14
25
goimports :
15
26
local-prefixes : github.com/go-task
16
27
gofmt :
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "errors"
5
4
"fmt"
6
5
"os"
7
6
"os/exec"
@@ -12,6 +11,8 @@ import (
12
11
"github.com/Masterminds/semver/v3"
13
12
"github.com/otiai10/copy"
14
13
"github.com/spf13/pflag"
14
+
15
+ "github.com/go-task/task/v3/errors"
15
16
)
16
17
17
18
const (
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package execext
2
2
3
3
import (
4
4
"context"
5
- "errors"
6
5
"fmt"
7
6
"io"
8
7
"os"
@@ -14,6 +13,8 @@ import (
14
13
"mvdan.cc/sh/v3/interp"
15
14
"mvdan.cc/sh/v3/shell"
16
15
"mvdan.cc/sh/v3/syntax"
16
+
17
+ "github.com/go-task/task/v3/errors"
17
18
)
18
19
19
20
// RunCommandOptions is the options for the RunCommand func
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ package flags
2
2
3
3
import (
4
4
"cmp"
5
- "errors"
6
5
"log"
7
6
"os"
8
7
"strconv"
9
8
"time"
10
9
11
10
"github.com/spf13/pflag"
12
11
12
+ "github.com/go-task/task/v3/errors"
13
13
"github.com/go-task/task/v3/internal/experiments"
14
14
"github.com/go-task/task/v3/taskfile/ast"
15
15
)
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package task
2
2
3
3
import (
4
4
"context"
5
- "errors"
6
5
6
+ "github.com/go-task/task/v3/errors"
7
7
"github.com/go-task/task/v3/internal/env"
8
8
"github.com/go-task/task/v3/internal/execext"
9
9
"github.com/go-task/task/v3/internal/logger"
You can’t perform that action at this time.
0 commit comments