*: Fix imports
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
c3d2bc0315
commit
3530b9b87d
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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 (
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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.
|
||||
|
@ -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{
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user