mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #7649 from tianon/vendor-optional-go
Optionalize the "hg clone" of Go, since it takes forever
This commit is contained in:
commit
321df7fd61
1 changed files with 8 additions and 5 deletions
|
@ -53,11 +53,14 @@ clone hg code.google.com/p/gosqlite 74691fb6f837
|
|||
|
||||
# get Go tip's archive/tar, for xattr support and improved performance
|
||||
# TODO after Go 1.4 drops, bump our minimum supported version and drop this vendored dep
|
||||
clone hg code.google.com/p/go 1b17b3426e3c
|
||||
mv src/code.google.com/p/go/src/pkg/archive/tar tmp-tar
|
||||
rm -rf src/code.google.com/p/go
|
||||
mkdir -p src/code.google.com/p/go/src/pkg/archive
|
||||
mv tmp-tar src/code.google.com/p/go/src/pkg/archive/tar
|
||||
if [ "$1" = '--go' ]; then
|
||||
# Go takes forever and a half to clone, so we only redownload it when explicitly requested via the "--go" flag to this script.
|
||||
clone hg code.google.com/p/go 1b17b3426e3c
|
||||
mv src/code.google.com/p/go/src/pkg/archive/tar tmp-tar
|
||||
rm -rf src/code.google.com/p/go
|
||||
mkdir -p src/code.google.com/p/go/src/pkg/archive
|
||||
mv tmp-tar src/code.google.com/p/go/src/pkg/archive/tar
|
||||
fi
|
||||
|
||||
clone git github.com/docker/libcontainer db65c35051d05f3fb218a0e84a11267e0894fe0a
|
||||
# see src/github.com/docker/libcontainer/update-vendor.sh which is the "source of truth" for libcontainer deps (just like this file)
|
||||
|
|
Loading…
Add table
Reference in a new issue