Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
ref(*): remove the loader pkg; use cnab-go's
Browse files Browse the repository at this point in the history
  • Loading branch information
vdice committed Aug 14, 2019
1 parent 86561fe commit eebe661
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 19 deletions.
3 changes: 2 additions & 1 deletion cmd/duffle/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/imagestore/construction"
"github.com/deislabs/duffle/pkg/loader"
"github.com/deislabs/duffle/pkg/packager"

"github.com/deislabs/cnab-go/bundle/loader"

"github.com/spf13/cobra"
)

Expand Down
3 changes: 2 additions & 1 deletion cmd/duffle/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (

"github.com/spf13/cobra"

"github.com/deislabs/cnab-go/bundle/loader"

"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/loader"
"github.com/deislabs/duffle/pkg/packager"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

duffleDriver "github.com/deislabs/duffle/pkg/driver"
"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/loader"
"github.com/deislabs/duffle/pkg/reference"

"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/cnab-go/bundle/loader"
"github.com/deislabs/cnab-go/claim"
"github.com/deislabs/cnab-go/credentials"
"github.com/deislabs/cnab-go/driver"
Expand Down
5 changes: 2 additions & 3 deletions cmd/duffle/relocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ import (
"strconv"
"strings"

"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/imagestore"
"github.com/deislabs/duffle/pkg/imagestore/construction"
"github.com/deislabs/duffle/pkg/loader"
"github.com/deislabs/duffle/pkg/packager"
"github.com/deislabs/duffle/pkg/relocator"

"github.com/pivotal/image-relocation/pkg/image"
"github.com/pivotal/image-relocation/pkg/pathmapping"

"github.com/deislabs/cnab-go/bundle"

"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/cnab-go/bundle/loader"

"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/util/validation"
Expand Down
3 changes: 1 addition & 2 deletions pkg/packager/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import (
"github.com/deislabs/duffle/pkg/imagestore"

"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/cnab-go/bundle/loader"
"github.com/docker/docker/pkg/archive"

"github.com/deislabs/duffle/pkg/loader"
)

type Exporter struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/packager/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"strings"
"testing"

"github.com/deislabs/cnab-go/bundle/loader"

"github.com/deislabs/duffle/pkg/imagestore"
"github.com/deislabs/duffle/pkg/imagestore/imagestoremocks"

"github.com/deislabs/duffle/pkg/loader"
)

func TestExport(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions pkg/packager/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"strings"

"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/cnab-go/bundle/loader"

"github.com/docker/docker/pkg/archive"

"github.com/deislabs/duffle/pkg/loader"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/packager/import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/deislabs/duffle/pkg/loader"
"github.com/deislabs/cnab-go/bundle/loader"
)

func TestImport(t *testing.T) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eebe661

Please sign in to comment.