aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2016-03-05 21:01:58 +0100
committerJakob Borg <jakob@nym.se>2016-03-05 21:21:24 +0100
commit65aaa607ab40519369fe9cc69ad96bf25da0c04f (patch)
tree4a35666476b18e3bdfcd237ef8456b0ec6314f82 /build.sh
parent9259425a9ac13a2f5f0ee8733490536a7a5d4762 (diff)
downloadsyncthing-65aaa607ab40519369fe9cc69ad96bf25da0c04f.tar.gz
syncthing-65aaa607ab40519369fe9cc69ad96bf25da0c04f.zip
Use Go 1.5 vendoring instead of Godeps
Change made by: - running "gvt fetch" on each of the packages mentioned in Godeps/Godeps.json - `rm -rf Godeps` - tweaking the build scripts to not mention Godeps - tweaking the build scripts to test `./lib/...`, `./cmd/...` explicitly (to avoid testing vendor) - tweaking the build scripts to not juggle GOPATH for Godeps and instead set GO15VENDOREXPERIMENT. This also results in some updated packages at the same time I bet. Building with Go 1.3 and 1.4 still *works* but won't use our vendored dependencies - the user needs to have the actual packages in their GOPATH then, which they'll get with a normal "go get". Building with Go 1.6+ will get our vendored dependencies by default even when not using our build script, which is nice. By doing this we gain some freedom in that we can pick and choose manually what to include in vendor, as it's not based on just dependency analysis of our own code. This is also a risk as we might pick up dependencies we are unaware of, as the build may work locally with those packages present in GOPATH. On the other hand the build server will detect this as it has no packages in it's GOPATH beyond what is included in the repo. Recommended tool to manage dependencies is github.com/FiloSottile/gvt.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 1eba71782..0aeb98f87 100755
--- a/build.sh
+++ b/build.sh
@@ -27,10 +27,6 @@ case "${1:-default}" in
build "$@"
;;
- deps)
- build "$@"
- ;;
-
assets)
build "$@"
;;
@@ -106,7 +102,7 @@ case "${1:-default}" in
fail=0
# For every package in the repo
- for dir in $(go list ./...) ; do
+ for dir in $(go list ./lib/... ./cmd/...) ; do
# run the tests
GOPATH="$(pwd)/Godeps/_workspace:$GOPATH" go test -race -coverprofile=profile.out $dir
if [ -f profile.out ] ; then