Skip to content

Commit e3140d0

Browse files
author
OpenShift Bot
authored
Merge pull request #818 from soltysh/bump_docker
Merged by openshift-bot
2 parents 9a1bd4d + 8e7b897 commit e3140d0

File tree

687 files changed

+208446
-2814
lines changed

Some content is hidden

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

687 files changed

+208446
-2814
lines changed

Godeps/Godeps.json

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

hack/godep-restore.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/bash
2+
3+
# Sometimes godep needs 'other' remotes. So add those remotes
4+
preload-remote() {
5+
local orig_org="$1"
6+
local orig_project="$2"
7+
local alt_org="$3"
8+
local alt_project="$4"
9+
10+
# Go get stinks, which is why we have the || true...
11+
go get -d "${orig_org}/${orig_project}" &>/dev/null || true
12+
13+
repo_dir="${GOPATH}/src/${orig_org}/${orig_project}"
14+
pushd "${repo_dir}" > /dev/null
15+
git remote add "${alt_org}-remote" "https://${alt_org}/${alt_project}.git" > /dev/null || true
16+
git remote update > /dev/null
17+
popd > /dev/null
18+
}
19+
20+
pin-godep() {
21+
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
22+
git checkout "$1"
23+
"${GODEP}" go install
24+
popd > /dev/null
25+
}
26+
27+
# build the godep tool
28+
# Again go get stinks, hence || true
29+
go get -u github.com/tools/godep 2>/dev/null || true
30+
GODEP="${GOPATH}/bin/godep"
31+
32+
# Use to following if we ever need to pin godep to a specific version again
33+
pin-godep 'v79'
34+
35+
# preload any odd-ball remotes
36+
preload-remote "github.com/docker" "distribution" "github.com/openshift" "docker-distribution"
37+
38+
# fill out that nice clean place with the origin godeps
39+
echo "Starting to download all godeps. This takes a while"
40+
41+
pushd "${GOPATH}/src/github.com/openshift/source-to-image" > /dev/null
42+
"${GODEP}" restore "$@"
43+
popd > /dev/null
44+
45+
echo "Download finished into ${GOPATH}"
46+
echo "######## REMEMBER ########"
47+
echo "You cannot just godep save ./..."
48+
echo "You should use hack/godep-save.sh"
49+
echo "hack/godep-save.sh forces the inclusion of packages that godep alone will not include"

hack/godep-save.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
pin-godep() {
4+
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null
5+
git checkout "$1"
6+
"${GODEP}" go install
7+
popd > /dev/null
8+
}
9+
10+
# build the godep tool
11+
# Again go get stinks, hence || true
12+
go get -u github.com/tools/godep 2>/dev/null || true
13+
GODEP="${GOPATH}/bin/godep"
14+
15+
# Use to following if we ever need to pin godep to a specific version again
16+
pin-godep 'v79'
17+
18+
godep-save () {
19+
echo "Deleting vendor/ and Godeps/"
20+
rm -rf vendor/ Godeps/
21+
echo "Running godep-save. This takes around 5 minutes."
22+
"${GODEP}" save "$@"
23+
}
24+
25+
missing-test-deps () {
26+
go list -f $'{{range .Imports}}{{.}}\n{{end}}{{range .TestImports}}{{.}}\n{{end}}{{range .XTestImports}}{{.}}\n{{end}}' ./vendor/k8s.io/kubernetes/... | grep '\.' | grep -v github.com/openshift/origin | sort -u || true
27+
}
28+
29+
godep-save -t ./...

pkg/docker/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"strings"
1616

1717
"github.com/docker/distribution/reference"
18-
"github.com/docker/docker/cliconfig"
18+
cliconfig "github.com/docker/docker/cli/config"
1919
"github.com/docker/engine-api/client"
2020
"github.com/openshift/source-to-image/pkg/api"
2121
s2ierr "github.com/openshift/source-to-image/pkg/errors"
@@ -394,7 +394,7 @@ func GetDefaultDockerConfig() *api.DockerConfig {
394394

395395
certPath := os.Getenv("DOCKER_CERT_PATH")
396396
if certPath == "" {
397-
certPath = cliconfig.ConfigDir()
397+
certPath = cliconfig.Dir()
398398
}
399399

400400
cfg.CertFile = filepath.Join(certPath, "cert.pem")

vendor/github.com/Azure/go-ansiterm/README.md

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

0 commit comments

Comments
 (0)