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

ref(*): remove the loader pkg; use cnab-go's #832

Merged
merged 1 commit into from Aug 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
6 changes: 3 additions & 3 deletions cmd/duffle/export.go
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"
"io"

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

"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/spf13/cobra"
)

const exportDesc = `
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/import.go
Expand Up @@ -5,10 +5,10 @@ import (
"io"
"path/filepath"

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

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

Expand Down
10 changes: 5 additions & 5 deletions cmd/duffle/main.go
Expand Up @@ -9,17 +9,17 @@ import (
"runtime"
"strings"

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"
"github.com/deislabs/cnab-go/utils/crud"
"github.com/spf13/cobra"

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

var (
Expand Down
19 changes: 8 additions & 11 deletions cmd/duffle/relocate.go
Expand Up @@ -10,21 +10,18 @@ import (
"strconv"
"strings"

"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/deislabs/cnab-go/bundle"
"github.com/deislabs/cnab-go/bundle/loader"
"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/spf13/cobra"
"k8s.io/apimachinery/pkg/util/validation"

"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/packager"
"github.com/deislabs/duffle/pkg/relocator"
)

const (
Expand Down
50 changes: 0 additions & 50 deletions pkg/loader/loader_test.go

This file was deleted.

5 changes: 2 additions & 3 deletions pkg/packager/export.go
Expand Up @@ -8,12 +8,11 @@ import (
"path/filepath"
"time"

"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"
"github.com/deislabs/duffle/pkg/imagestore"
)

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
4 changes: 1 addition & 3 deletions pkg/packager/import.go
Expand Up @@ -8,10 +8,8 @@ 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
3 changes: 1 addition & 2 deletions pkg/packager/import_test.go
Expand Up @@ -6,9 +6,8 @@ import (
"path/filepath"
"testing"

"github.com/deislabs/cnab-go/bundle/loader"
"github.com/stretchr/testify/assert"

"github.com/deislabs/duffle/pkg/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.