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

Commit

Permalink
Move to deislabs/cnab-go (#704)
Browse files Browse the repository at this point in the history
Vendor and use github.com/deislabs/cnab-go library, which extracted pkg/bundle.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki authored and radu-matei committed Apr 11, 2019
1 parent 9c16b9e commit 1847f2f
Show file tree
Hide file tree
Showing 37 changed files with 41 additions and 1,232 deletions.
34 changes: 11 additions & 23 deletions Gopkg.lock

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

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
name = "github.com/Masterminds/semver"
version = "1.4.2"

[[constraint]]
name = "github.com/Masterminds/vcs"
version = "1.11.1"

[[constraint]]
name = "github.com/sirupsen/logrus"
version = "v1.0.4"
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"path/filepath"

"github.com/deislabs/cnab-go/bundle"
"github.com/docker/cli/cli/command"
cliconfig "github.com/docker/cli/cli/config"
dockerdebug "github.com/docker/cli/cli/debug"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/spf13/pflag"

"github.com/deislabs/duffle/pkg/builder"
"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/crypto/digest"
"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/duffle/manifest"
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/claims_show_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/claims_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"

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

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

"github.com/deislabs/cnab-go/bundle"
"github.com/spf13/cobra"
survey "gopkg.in/AlecAivazis/survey.v1"
yaml "gopkg.in/yaml.v2"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/credentials"
"github.com/deislabs/duffle/pkg/duffle/home"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/credential_generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

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

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"path/filepath"
"strings"

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

"github.com/deislabs/duffle/pkg/action"
"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/deislabs/duffle/pkg/duffle/home"
"github.com/deislabs/duffle/pkg/repo"
Expand Down
2 changes: 1 addition & 1 deletion cmd/duffle/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path/filepath"
"testing"

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

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/duffle/home"
)

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

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

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/deislabs/duffle/pkg/credentials"
"github.com/deislabs/duffle/pkg/driver"
Expand Down
5 changes: 2 additions & 3 deletions cmd/duffle/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import (
"path/filepath"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/credentials"
"github.com/deislabs/duffle/pkg/duffle/home"

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

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

func CreateTestHome(t *testing.T) home.Home {
Expand Down
3 changes: 2 additions & 1 deletion cmd/duffle/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (
"strings"
"testing"

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

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

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

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

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

Expand Down
3 changes: 2 additions & 1 deletion pkg/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"io"
"strings"

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

"github.com/deislabs/duffle/pkg/claim"
"github.com/deislabs/duffle/pkg/credentials"
"github.com/deislabs/duffle/pkg/driver"
Expand Down
2 changes: 1 addition & 1 deletion pkg/action/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"testing"
"time"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/deislabs/duffle/pkg/credentials"
"github.com/deislabs/duffle/pkg/driver"

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

Expand Down
2 changes: 1 addition & 1 deletion pkg/action/run_custom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/deislabs/duffle/pkg/driver"

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

Expand Down
2 changes: 1 addition & 1 deletion pkg/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/Masterminds/semver"
"github.com/deislabs/cnab-go/bundle"
"github.com/pkg/errors"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/duffle/pkg/duffle/manifest"
"github.com/deislabs/duffle/pkg/imagebuilder"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/builder/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import (
"reflect"
"testing"

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

"github.com/deislabs/duffle/pkg/duffle/manifest"
"github.com/deislabs/duffle/pkg/imagebuilder"
)
Expand Down
Loading

0 comments on commit 1847f2f

Please sign in to comment.