1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

add gosqlite to vendor.sh

Add gosqlite and its latest revision to vendor.sh so that the vendor
directory can be reliably recreated.
This commit is contained in:
Josh Poimboeuf 2013-12-19 11:01:55 -06:00
parent 4bdd4599f0
commit d215724ad6

View file

@ -6,7 +6,7 @@ if [[ ! -d vendor ]]; then
fi fi
vendor_dir=${PWD}/vendor vendor_dir=${PWD}/vendor
git_clone () { rm_pkg_dir () {
PKG=$1 PKG=$1
REV=$2 REV=$2
( (
@ -16,11 +16,31 @@ git_clone () {
echo "src/$PKG already exists. Removing." echo "src/$PKG already exists. Removing."
rm -fr src/$PKG rm -fr src/$PKG
fi fi
)
}
git_clone () {
PKG=$1
REV=$2
(
set -e
rm_pkg_dir $PKG $REV
cd $vendor_dir && git clone http://$PKG src/$PKG cd $vendor_dir && git clone http://$PKG src/$PKG
cd src/$PKG && git checkout -f $REV && rm -fr .git cd src/$PKG && git checkout -f $REV && rm -fr .git
) )
} }
hg_clone () {
PKG=$1
REV=$2
(
set -e
rm_pkg_dir $PKG $REV
cd $vendor_dir && hg clone http://$PKG src/$PKG
cd src/$PKG && hg checkout -r $REV && rm -fr .hg
)
}
git_clone github.com/kr/pty 3b1f6487b git_clone github.com/kr/pty 3b1f6487b
git_clone github.com/gorilla/context/ 708054d61e5 git_clone github.com/gorilla/context/ 708054d61e5
@ -29,13 +49,6 @@ git_clone github.com/gorilla/mux/ 9b36453141c
git_clone github.com/syndtr/gocapability 3454319be2 git_clone github.com/syndtr/gocapability 3454319be2
# Docker requires code.google.com/p/go.net/websocket hg_clone code.google.com/p/go.net 84a4013f96e0
PKG=code.google.com/p/go.net REV=84a4013f96e0
( hg_clone code.google.com/p/gosqlite 74691fb6f837
set -e
cd $vendor_dir
if [[ ! -d src/$PKG ]]; then
hg clone https://$PKG src/$PKG
fi
cd src/$PKG && hg checkout -r $REV
)