Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
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.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
378 changes: 176 additions & 202 deletions Gopkg.lock

Large diffs are not rendered by default.

25 changes: 16 additions & 9 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ required = ["github.com/wadey/gocovmerge"]

[[override]]
name = "github.com/docker/cli"
branch = "master"
branch = "19.03"

# Waiting for https://github.com/deislabs/duffle/pull/682 to be merged
[[override]]
name = "github.com/deislabs/duffle"
source = "github.com/ijc/duffle"
branch = "set-merge"
branch = "master"

[[constraint]]
name = "github.com/sirupsen/logrus"
Expand All @@ -66,29 +64,38 @@ required = ["github.com/wadey/gocovmerge"]
name = "github.com/docker/go-metrics"
revision = "d466d4f6fd960e01820085bd7e1a24426ee7ef18"

[[override]]
name = "github.com/prometheus/client_golang"
revision = "v0.8.0"

[[override]]
name = "github.com/docker/distribution"
revision = "0d3efadf0154c2b8a4e7b6621fff9809655cc580"

[[override]]
name = "github.com/docker/swarmkit"
revision = "edd5641391926a50bc5f7040e20b7efc05003c26"
revision = "18e7e58ea1a5ec016625a636d0d52500eea123bc"

[[override]]
name = "k8s.io/kubernetes"
revision = "v1.11.1"
revision = "v1.14.1"

[[override]]
name = "k8s.io/api"
revision = "kubernetes-1.11.1"
revision = "kubernetes-1.14.1"

[[override]]
name = "k8s.io/apimachinery"
revision = "kubernetes-1.11.1"
revision = "kubernetes-1.14.1"

# Overriding imdario/mergo since https://github.com/imdario/mergo/pull/112 is required
[[override]]
name = "github.com/imdario/mergo"
branch = "master"

[[override]]
name = "k8s.io/client-go"
revision = "kubernetes-1.11.1"
revision = "kubernetes-1.14.1"

# This is using a fork waiting for go-yaml/yaml#375 to be merged
# This PR allows to set a max decoded value, thus not being exposed to yaml bombs
Expand Down
2 changes: 1 addition & 1 deletion cmd/cnab-run/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strconv"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal"
"github.com/docker/app/internal/packager"
"github.com/docker/app/render"
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"io/ioutil"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal"
"github.com/docker/app/internal/packager"
"github.com/docker/app/types"
Expand Down
4 changes: 2 additions & 2 deletions internal/commands/cnab.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"strings"

"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/duffle/pkg/action"
"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 Expand Up @@ -225,7 +225,7 @@ func resolveBundle(dockerCli command.Cli, bundleStore appstore.BundleStore, name
if strings.HasSuffix(name, internal.AppExtension) {
return extractAndLoadAppBasedBundle(dockerCli, name)
}
return loader.NewDetectingLoader().Load(name)
return loader.NewLoader().Load(name)
case nameKindDir, nameKindEmpty:
if pullRef {
if kind == nameKindDir {
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/cnab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal"
"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/config/configfile"
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"fmt"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/docker/app/internal"
"github.com/docker/app/types/parameters"
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/deislabs/duffle/pkg/claim"
"github.com/docker/app/internal"
"gotest.tools/assert"
Expand Down
4 changes: 2 additions & 2 deletions internal/commands/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/containerd/containerd/platforms"
"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal/packager"
"github.com/docker/app/types/metadata"
"github.com/docker/cli/cli"
Expand Down Expand Up @@ -101,7 +101,7 @@ func runPush(dockerCli command.Cli, name string, opts pushOptions) error {
return err
}
// push bundle manifest
descriptor, err := remotes.Push(context.Background(), bndl, retag.cnabRef, resolverConfig.Resolver)
descriptor, err := remotes.Push(context.Background(), bndl, retag.cnabRef, resolverConfig.Resolver, true)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package commands
import (
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/types/metadata"
"github.com/docker/distribution/reference"
"gotest.tools/assert"
Expand Down
2 changes: 1 addition & 1 deletion internal/inspect/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"text/tabwriter"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/render"
"github.com/docker/app/types"
"github.com/docker/app/types/parameters"
Expand Down
2 changes: 1 addition & 1 deletion internal/packager/cnab.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package packager

import (
"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal"
"github.com/docker/app/internal/compose"
"github.com/docker/app/types"
Expand Down
2 changes: 1 addition & 1 deletion internal/store/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/docker/cli/cli/config/configfile"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/cnab-to-oci/remotes"
"github.com/docker/distribution/reference"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/store/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/distribution/reference"
"gotest.tools/assert"
"gotest.tools/fs"
Expand Down
2 changes: 1 addition & 1 deletion render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"strings"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/internal/compose"
"github.com/docker/app/internal/renderer"
"github.com/docker/app/internal/slices"
Expand Down
2 changes: 1 addition & 1 deletion render/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/deislabs/duffle/pkg/bundle"
"github.com/deislabs/cnab-go/bundle"
"github.com/docker/app/types"
composetypes "github.com/docker/cli/cli/compose/types"
yaml "gopkg.in/yaml.v2"
Expand Down
2 changes: 1 addition & 1 deletion types/parameters/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
func Merge(parameters ...Parameters) (Parameters, error) {
s := Parameters(map[string]interface{}{})
for _, parameter := range parameters {
if err := mergo.Merge(&s, parameter, mergo.WithOverride, mergo.WithAppendSlice); err != nil {
if err := mergo.Merge(&s, parameter, mergo.WithOverride, mergo.WithTypeCheck); err != nil {
return s, errors.Wrap(err, "cannot merge parameters")
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/parameters/merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestMergeSliceError(t *testing.T) {
"baz": []int{1},
}
_, err := Merge(m1, m2)
assert.Check(t, is.ErrorContains(err, "cannot append two slice with different type"))
assert.Check(t, is.ErrorContains(err, "cannot override two slices with different type"))
}

func TestMerge(t *testing.T) {
Expand Down
24 changes: 18 additions & 6 deletions vendor/cloud.google.com/go/compute/metadata/metadata.go

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

9 changes: 7 additions & 2 deletions vendor/github.com/Microsoft/hcsshim/internal/hcs/log.go

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

Loading