-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #818 from soltysh/bump_docker
Merged by openshift-bot
- Loading branch information
Showing
687 changed files
with
208,446 additions
and
2,814 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# Sometimes godep needs 'other' remotes. So add those remotes | ||
preload-remote() { | ||
local orig_org="$1" | ||
local orig_project="$2" | ||
local alt_org="$3" | ||
local alt_project="$4" | ||
|
||
# Go get stinks, which is why we have the || true... | ||
go get -d "${orig_org}/${orig_project}" &>/dev/null || true | ||
|
||
repo_dir="${GOPATH}/src/${orig_org}/${orig_project}" | ||
pushd "${repo_dir}" > /dev/null | ||
git remote add "${alt_org}-remote" "https://${alt_org}/${alt_project}.git" > /dev/null || true | ||
git remote update > /dev/null | ||
popd > /dev/null | ||
} | ||
|
||
pin-godep() { | ||
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null | ||
git checkout "$1" | ||
"${GODEP}" go install | ||
popd > /dev/null | ||
} | ||
|
||
# build the godep tool | ||
# Again go get stinks, hence || true | ||
go get -u github.com/tools/godep 2>/dev/null || true | ||
GODEP="${GOPATH}/bin/godep" | ||
|
||
# Use to following if we ever need to pin godep to a specific version again | ||
pin-godep 'v79' | ||
|
||
# preload any odd-ball remotes | ||
preload-remote "github.com/docker" "distribution" "github.com/openshift" "docker-distribution" | ||
|
||
# fill out that nice clean place with the origin godeps | ||
echo "Starting to download all godeps. This takes a while" | ||
|
||
pushd "${GOPATH}/src/github.com/openshift/source-to-image" > /dev/null | ||
"${GODEP}" restore "$@" | ||
popd > /dev/null | ||
|
||
echo "Download finished into ${GOPATH}" | ||
echo "######## REMEMBER ########" | ||
echo "You cannot just godep save ./..." | ||
echo "You should use hack/godep-save.sh" | ||
echo "hack/godep-save.sh forces the inclusion of packages that godep alone will not include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
pin-godep() { | ||
pushd "${GOPATH}/src/github.com/tools/godep" > /dev/null | ||
git checkout "$1" | ||
"${GODEP}" go install | ||
popd > /dev/null | ||
} | ||
|
||
# build the godep tool | ||
# Again go get stinks, hence || true | ||
go get -u github.com/tools/godep 2>/dev/null || true | ||
GODEP="${GOPATH}/bin/godep" | ||
|
||
# Use to following if we ever need to pin godep to a specific version again | ||
pin-godep 'v79' | ||
|
||
godep-save () { | ||
echo "Deleting vendor/ and Godeps/" | ||
rm -rf vendor/ Godeps/ | ||
echo "Running godep-save. This takes around 5 minutes." | ||
"${GODEP}" save "$@" | ||
} | ||
|
||
missing-test-deps () { | ||
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 | ||
} | ||
|
||
godep-save -t ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.