Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 860ed13

Browse files
committed
Bump docker/cli vendoring
Signed-off-by: Simon Ferquel <[email protected]>
1 parent e797c90 commit 860ed13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1010
-1621
lines changed

Gopkg.lock

Lines changed: 5 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ required = ["github.com/wadey/gocovmerge"]
3636
source = "github.com/simonferquel/containerd"
3737
revision = "42c3614d58767e96c1752977fed94d0b140a0173"
3838

39-
### Waiting on PR https://github.com/docker/cli/pull/1718 and https://github.com/docker/cli/pull/1690 to land on cli ###
4039
[[override]]
4140
name = "github.com/docker/cli"
42-
source = "https://github.com/chris-crone/cli"
43-
revision="d6bfd7e5592dad85969516c131d33910fa5ebd58"
41+
branch = "master"
4442

4543
[[override]]
4644
name = "github.com/deislabs/duffle"

internal/store/store.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/pkg/errors"
1515
)
1616

17-
func storeBaseDir() string {
17+
func storeBaseDir() (string, error) {
1818
return config.Path("app-bundle-store")
1919
}
2020
func storePath(ref reference.Named) (string, error) {
@@ -29,8 +29,12 @@ func storePath(ref reference.Named) (string, error) {
2929
// when parsing the ref) then there will be errors when we try
3030
// to use this as a path later.
3131
name = strings.Replace(name, ":", "_", 1)
32+
baseDir, err := storeBaseDir()
33+
if err != nil {
34+
return "", err
35+
}
3236

33-
storeDir := filepath.Join(storeBaseDir(), filepath.FromSlash(name))
37+
storeDir := filepath.Join(baseDir, filepath.FromSlash(name))
3438

3539
// We rely here on _ not being valid in a name meaning there can be no clashes due to nesting of repositories.
3640
switch t := ref.(type) {

internal/store/store_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ func parseRefOrDie(t *testing.T, ref string) reference.Named {
1717

1818
func TestStorePath(t *testing.T) {
1919
testSha := "2957c6606cc94099f7dfe0011b5c8daf4a605ed6124d4eee773bab1e05a8ce87"
20-
basedir := storeBaseDir()
20+
basedir, err := storeBaseDir()
21+
assert.NilError(t, err)
2122
for _, tc := range []struct {
2223
Name string
2324
Ref reference.Named

vendor/github.com/Nvveen/Gotty/LICENSE

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)