vendor all dependencies with Godep

Vendored go.rice manually as a submodule. This is so that Godep picks up its
dependencies as well, so that the entirety of Drone's dependencies are
vendored in, and Drone can be built without an internet connection.
This commit is contained in:
Alex Suraci
2014-04-05 14:10:28 -07:00
parent 0c9a765956
commit 10c97e5c61
579 changed files with 256989 additions and 32 deletions

View File

@@ -22,33 +22,11 @@ PKGS := $(addprefix github.com/drone/drone/pkg/,$(PKGS))
all: embed build
deps: go-gitlab-client
[ -d $$GOPATH/src/code.google.com/p/go ] || hg clone -u default https://code.google.com/p/go $$GOPATH/src/code.google.com/p/go
[ -d $$GOPATH/src/github.com/dotcloud/docker ] || git clone git://github.com/dotcloud/docker $$GOPATH/src/github.com/dotcloud/docker
go get code.google.com/p/go.crypto/bcrypt
go get code.google.com/p/go.crypto/ssh
go get code.google.com/p/go.net/websocket
go get code.google.com/p/go.text/unicode/norm
#go get code.google.com/p/go/src/pkg/archive/tar
go get launchpad.net/goyaml
go get github.com/andybons/hipchat
go get github.com/bmizerany/pat
go get github.com/dchest/authcookie
go get github.com/dchest/passwordreset
go get github.com/dchest/uniuri
go get github.com/fluffle/goirc
#go get github.com/dotcloud/docker/archive
#go get github.com/dotcloud/docker/utils
#go get github.com/dotcloud/docker/pkg/term
go get github.com/drone/go-github/github
go get github.com/drone/go-bitbucket/bitbucket
go get github.com/GeertJohan/go.rice
go get github.com/GeertJohan/go.rice/rice
go get github.com/go-sql-driver/mysql
go get github.com/mattn/go-sqlite3
go get github.com/russross/meddler
vendor: godep
git submodule update --init --recursive
godep save ./...
embed: js
embed: js rice
cd cmd/droned && rice embed
cd pkg/template && rice embed
@@ -71,7 +49,7 @@ install:
cd bin && install -t /usr/local/bin droned
mkdir -p /var/lib/drone
clean:
clean: rice
cd cmd/droned && rice clean
cd pkg/template && rice clean
rm -rf cmd/drone/drone
@@ -101,3 +79,9 @@ run:
go-gitlab-client:
rm -rf $$GOPATH/src/github.com/plouc/go-gitlab-client
git clone -b raw-request https://github.com/fudanchii/go-gitlab-client $$GOPATH/src/github.com/plouc/go-gitlab-client
godep:
go get github.com/tools/godep
rice:
go install github.com/GeertJohan/go.rice/rice