File tree 11 files changed +25
-21
lines changed
11 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import (
6
6
"runtime"
7
7
"strings"
8
8
9
- utillog "github.com/openshift/source-to-image/pkg/util/log"
10
9
"github.com/spf13/cobra"
11
10
12
11
"github.com/openshift/source-to-image/pkg/api"
13
12
"github.com/openshift/source-to-image/pkg/cmd/cli/cmd"
14
13
cmdutil "github.com/openshift/source-to-image/pkg/cmd/cli/util"
15
14
"github.com/openshift/source-to-image/pkg/docker"
15
+ utillog "github.com/openshift/source-to-image/pkg/util/log"
16
16
)
17
17
18
18
// log is a placeholder until the builders pass an output stream down
Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"os"
6
6
7
- "github.com/openshift/source-to-image/pkg/scm/git"
8
- utillog "github.com/openshift/source-to-image/pkg/util/log"
9
7
"github.com/spf13/cobra"
10
8
11
9
"github.com/openshift/source-to-image/pkg/api"
@@ -18,8 +16,10 @@ import (
18
16
"github.com/openshift/source-to-image/pkg/docker"
19
17
s2ierr "github.com/openshift/source-to-image/pkg/errors"
20
18
"github.com/openshift/source-to-image/pkg/run"
19
+ "github.com/openshift/source-to-image/pkg/scm/git"
21
20
"github.com/openshift/source-to-image/pkg/tar"
22
21
"github.com/openshift/source-to-image/pkg/util"
22
+ utillog "github.com/openshift/source-to-image/pkg/util/log"
23
23
"github.com/openshift/source-to-image/pkg/version"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ package cmd
2
2
3
3
import (
4
4
"context"
5
+ "strings"
6
+
5
7
"github.com/containers/image/v5/transports/alltransports"
6
8
"github.com/containers/image/v5/types"
7
9
"github.com/spf13/cobra"
8
- "strings"
9
10
10
11
"github.com/openshift/source-to-image/pkg/api"
11
12
"github.com/openshift/source-to-image/pkg/api/constants"
Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ import (
5
5
"os"
6
6
"path/filepath"
7
7
8
+ "github.com/spf13/cobra"
9
+ "github.com/spf13/pflag"
10
+
8
11
log "k8s.io/klog"
9
12
10
13
"github.com/openshift/source-to-image/pkg/api"
11
- "github.com/spf13/cobra"
12
- "github.com/spf13/pflag"
13
14
)
14
15
15
16
// AddCommonFlags adds the common flags for usage, build and rebuild commands
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ import (
7
7
"regexp"
8
8
"strings"
9
9
10
+ "github.com/spf13/cobra"
11
+ "github.com/spf13/pflag"
12
+
10
13
"github.com/openshift/source-to-image/pkg/api"
11
14
"github.com/openshift/source-to-image/pkg/scm/git"
12
15
utillog "github.com/openshift/source-to-image/pkg/util/log"
13
- "github.com/spf13/cobra"
14
- "github.com/spf13/pflag"
15
16
)
16
17
17
18
var log = utillog .StderrLog
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ import (
10
10
"strings"
11
11
"testing"
12
12
13
+ dockertypes "github.com/docker/docker/api/types"
14
+ dockercontainer "github.com/docker/docker/api/types/container"
15
+ dockerstrslice "github.com/docker/docker/api/types/strslice"
16
+
13
17
"github.com/openshift/source-to-image/pkg/api/constants"
14
18
dockertest "github.com/openshift/source-to-image/pkg/docker/test"
15
19
"github.com/openshift/source-to-image/pkg/errors"
16
20
testfs "github.com/openshift/source-to-image/pkg/test/fs"
17
-
18
- dockertypes "github.com/docker/docker/api/types"
19
- dockercontainer "github.com/docker/docker/api/types/container"
20
- dockerstrslice "github.com/docker/docker/api/types/strslice"
21
21
)
22
22
23
23
func TestContainerName (t * testing.T ) {
Original file line number Diff line number Diff line change 5
5
"testing"
6
6
7
7
cliconfig "github.com/docker/docker/cli/config"
8
+
8
9
"github.com/openshift/source-to-image/pkg/api/constants"
9
10
"github.com/openshift/source-to-image/pkg/util/user"
10
11
)
Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ import (
11
11
"strings"
12
12
"time"
13
13
14
- "github.com/openshift/source-to-image/pkg/util/fs"
15
- utillog "github.com/openshift/source-to-image/pkg/util/log"
16
-
17
14
s2ierr "github.com/openshift/source-to-image/pkg/errors"
18
15
"github.com/openshift/source-to-image/pkg/util"
16
+ "github.com/openshift/source-to-image/pkg/util/fs"
17
+ utillog "github.com/openshift/source-to-image/pkg/util/log"
19
18
)
20
19
21
20
var log = utillog .StderrLog
Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ import (
12
12
"sync"
13
13
"time"
14
14
15
- utillog "github.com/openshift/source-to-image/pkg/util/log"
16
-
17
15
s2ierr "github.com/openshift/source-to-image/pkg/errors"
16
+ utillog "github.com/openshift/source-to-image/pkg/util/log"
18
17
)
19
18
20
19
var log = utillog .StderrLog
Original file line number Diff line number Diff line change 1
1
package test
2
2
3
3
import (
4
- "github.com/openshift/source-to-image/pkg/cmd/cli/cmd"
5
4
"testing"
5
+
6
+ "github.com/openshift/source-to-image/pkg/cmd/cli/cmd"
6
7
)
7
8
8
9
func TestGenerate_canonizeBuilderImageArg (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ import (
16
16
"testing"
17
17
"time"
18
18
19
- "k8s.io/klog"
20
-
21
19
dockertypes "github.com/docker/docker/api/types"
22
20
dockercontainer "github.com/docker/docker/api/types/container"
23
21
dockerapi "github.com/docker/docker/client"
22
+ "golang.org/x/net/context"
23
+
24
+ "k8s.io/klog"
25
+
24
26
"github.com/openshift/source-to-image/pkg/api"
25
27
"github.com/openshift/source-to-image/pkg/build"
26
28
"github.com/openshift/source-to-image/pkg/build/strategies"
@@ -30,7 +32,6 @@ import (
30
32
"github.com/openshift/source-to-image/pkg/tar"
31
33
"github.com/openshift/source-to-image/pkg/util"
32
34
"github.com/openshift/source-to-image/pkg/util/fs"
33
- "golang.org/x/net/context"
34
35
)
35
36
36
37
const (
You can’t perform that action at this time.
0 commit comments