*: Fix imports

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
Thomas Hipp 2018-03-06 11:16:22 +01:00
parent c3d2bc0315
commit 3530b9b87d
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51
9 changed files with 18 additions and 12 deletions

View File

@ -2,13 +2,13 @@ package generators
import (
"os"
p "path"
"path/filepath"
"strings"
p "path"
"github.com/lxc/lxd/shared"
"github.com/lxc/distrobuilder/image"
"github.com/lxc/lxd/shared"
)
// Generator interface.

View File

@ -5,8 +5,9 @@ import (
"os"
"path/filepath"
"github.com/lxc/distrobuilder/image"
"github.com/lxc/lxd/shared/api"
"github.com/lxc/distrobuilder/image"
)
// HostnameGenerator represents the Hostname generator.

View File

@ -1,6 +1,6 @@
package image
import pongo2 "gopkg.in/flosch/pongo2.v3"
import "gopkg.in/flosch/pongo2.v3"
func renderTemplate(template string, ctx pongo2.Context) (string, error) {
var (

View File

@ -8,7 +8,7 @@ import (
"time"
lxd "github.com/lxc/lxd/shared"
pongo2 "gopkg.in/flosch/pongo2.v3"
"gopkg.in/flosch/pongo2.v3"
"github.com/lxc/distrobuilder/shared"
)

View File

@ -6,11 +6,12 @@ import (
"path/filepath"
"time"
"github.com/lxc/distrobuilder/shared"
"github.com/lxc/lxd/shared/api"
"github.com/lxc/lxd/shared/osarch"
pongo2 "gopkg.in/flosch/pongo2.v3"
yaml "gopkg.in/yaml.v2"
"gopkg.in/flosch/pongo2.v3"
"gopkg.in/yaml.v2"
"github.com/lxc/distrobuilder/shared"
)
// A LXDImage represents a LXD image.

View File

@ -10,8 +10,9 @@ import (
"testing"
"time"
"github.com/lxc/distrobuilder/shared"
lxd "github.com/lxc/lxd/shared"
"github.com/lxc/distrobuilder/shared"
)
var lxdImageDef = shared.DefinitionImage{

View File

@ -7,8 +7,9 @@ import (
"path/filepath"
"strings"
"github.com/lxc/distrobuilder/shared"
lxd "github.com/lxc/lxd/shared"
"github.com/lxc/distrobuilder/shared"
)
// AlpineLinuxHTTP represents the Alpine Linux downloader.

View File

@ -6,8 +6,9 @@ import (
"os"
"path/filepath"
"github.com/lxc/distrobuilder/shared"
lxd "github.com/lxc/lxd/shared"
"github.com/lxc/distrobuilder/shared"
)
// ArchLinuxHTTP represents the Arch Linux downloader.

View File

@ -10,8 +10,9 @@ import (
"regexp"
"strings"
"github.com/lxc/distrobuilder/shared"
lxd "github.com/lxc/lxd/shared"
"github.com/lxc/distrobuilder/shared"
)
// UbuntuHTTP represents the Ubuntu HTTP downloader.