1
0
mirror of https://github.com/go-task/task.git synced 2024-12-04 10:24:45 +02:00

Refactor: Fix import order

It should be: stdlib > libs > app
This commit is contained in:
Andrey Nering 2021-01-07 11:48:33 -03:00
parent 299e27af15
commit 83d25bfa00
10 changed files with 21 additions and 21 deletions

View File

@ -4,10 +4,10 @@ import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3/args"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
)
func TestArgsV3(t *testing.T) {

View File

@ -9,12 +9,12 @@ import (
"path/filepath"
"syscall"
"github.com/spf13/pflag"
"github.com/go-task/task/v3"
"github.com/go-task/task/v3/args"
"github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/taskfile"
"github.com/spf13/pflag"
)
var (

View File

@ -6,9 +6,9 @@ import (
"io"
"testing"
"github.com/go-task/task/v3/internal/output"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3/internal/output"
)
func TestInterleaved(t *testing.T) {

View File

@ -5,9 +5,9 @@ import (
"path/filepath"
"sort"
"github.com/go-task/task/v3/internal/execext"
"github.com/mattn/go-zglob"
"github.com/go-task/task/v3/internal/execext"
)
func globs(dir string, globs []string) ([]string, error) {

View File

@ -5,11 +5,11 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/summary"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
)
func TestPrintsDependenciesIfPresent(t *testing.T) {

View File

@ -11,10 +11,10 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/go-task/task/v3"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
)
// fileContentTest provides a basic reusable test-case for running a Taskfile

View File

@ -3,10 +3,10 @@ package taskfile_test
import (
"testing"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"github.com/go-task/task/v3/taskfile"
)
func TestPreconditionParse(t *testing.T) {

View File

@ -7,11 +7,11 @@ import (
"path/filepath"
"runtime"
"github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
"github.com/joho/godotenv"
"gopkg.in/yaml.v3"
"github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
)
var (

View File

@ -6,9 +6,9 @@ import (
"path/filepath"
"runtime"
"github.com/go-task/task/v3/taskfile"
"gopkg.in/yaml.v3"
"github.com/go-task/task/v3/taskfile"
)
// Taskvars reads a Taskvars for a given directory

View File

@ -3,10 +3,10 @@ package taskfile_test
import (
"testing"
"github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"github.com/go-task/task/v3/taskfile"
)
func TestCmdParse(t *testing.T) {