Update gopsutil godep dependency. Dont use godep go build anymore

godep seems to have a problem when dependencies have `internal`
packages. So removing `godep go build` and `godep go test` from the
build process in favor of just checking out the correct revisions using
`godep restore` into the regular GOPATH.

This basically means that we are not actually using anything within the
Godeps directory except Godeps.json. I should probably make a separate
go dependency management system that does this.
This commit is contained in:
Cameron Sparr
2015-12-04 11:44:56 -07:00
parent 00a6dbbe97
commit e6517d4140
52 changed files with 762 additions and 218 deletions

View File

@@ -57,7 +57,7 @@ exit_if_fail make
exit_if_fail godep go vet ./...
exit_if_fail make docker-run-circle
sleep 10
exit_if_fail godep go test -race ./...
exit_if_fail go test -race ./...
# Simple Integration Tests
# check that version was properly set

View File

@@ -134,7 +134,8 @@ do_build() {
rm -f $GOPATH_INSTALL/bin/$b
done
godep go install -ldflags="-X main.Version $version" ./...
godep restore
go install -ldflags="-X main.Version $version" ./...
if [ $? -ne 0 ]; then
echo "Build failed, unable to create package -- aborting"
cleanup_exit 1