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 08b8339
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 69 deletions.
8 changes: 5 additions & 3 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Expand Up @@ -57,7 +57,7 @@

[[constraint]]
name = "github.com/deislabs/cnab-go"
version = "v0.3.0-beta1"
version = "v0.3.1-beta1"

[[override]]
name = "github.com/google/go-containerregistry"
Expand Down
3 changes: 2 additions & 1 deletion cmd/duffle/export.go
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
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
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
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
50 changes: 0 additions & 50 deletions pkg/loader/loader_test.go

This file was deleted.

3 changes: 1 addition & 2 deletions pkg/packager/export.go
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
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
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
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
2 changes: 1 addition & 1 deletion vendor/github.com/deislabs/cnab-go/bundle/bundle.go

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 08b8339

Please sign in to comment.