Godeps, vendor: switch to Go 1.6 vendored dependencies

This commit is contained in:
Péter Szilágyi 2016-05-03 19:24:28 +03:00
parent 2d7d7ef2fe
commit 46c6e5ef35
765 changed files with 14 additions and 19 deletions

View file

@ -1,6 +1,6 @@
language: go language: go
go: go:
- 1.4.2 - 1.6.2
install: install:
# - go get code.google.com/p/go.tools/cmd/goimports # - go get code.google.com/p/go.tools/cmd/goimports
# - go get github.com/golang/lint/golint # - go get github.com/golang/lint/golint

2
Godeps/Godeps.json generated
View file

@ -1,6 +1,6 @@
{ {
"ImportPath": "github.com/ethereum/go-ethereum", "ImportPath": "github.com/ethereum/go-ethereum",
"GoVersion": "go1.5.2", "GoVersion": "go1.6.2",
"Packages": [ "Packages": [
"./..." "./..."
], ],

5
Godeps/Readme generated
View file

@ -1,5 +0,0 @@
This directory tree is generated automatically by godep.
Please do not edit.
See https://github.com/tools/godep for more information.

2
Godeps/_workspace/.gitignore generated vendored
View file

@ -1,2 +0,0 @@
/pkg
/bin

View file

@ -103,13 +103,13 @@ evm:
@echo "Run \"$(GOBIN)/evm to start the evm." @echo "Run \"$(GOBIN)/evm to start the evm."
all: all:
build/env.sh go install -v $(shell build/flags.sh) ./... build/env.sh go install -v $(shell build/flags.sh) `build/env.sh go list ./... | grep -v /vendor/`
test: all test: all
build/env.sh go test ./... build/env.sh go test `build/env.sh go list ./... | grep -v /vendor/`
travis-test-with-coverage: all travis-test-with-coverage: all
build/env.sh go vet ./... build/env.sh go vet `build/env.sh go list ./... | grep -v /vendor/`
build/env.sh build/test-global-coverage.sh build/env.sh build/test-global-coverage.sh
xgo: xgo:

View file

@ -20,9 +20,11 @@ fi
# Set up the environment to use the workspace. # Set up the environment to use the workspace.
# Also add Godeps workspace so we build using canned dependencies. # Also add Godeps workspace so we build using canned dependencies.
GOPATH="$ethdir/go-ethereum/Godeps/_workspace:$workspace" GOPATH="$workspace"
GOBIN="$PWD/build/bin" GOBIN="$PWD/build/bin"
export GOPATH GOBIN GO15VENDOREXPERIMENT=1
export GOPATH GOBIN GO15VENDOREXPERIMENT
# Run the command inside the workspace. # Run the command inside the workspace.
cd "$ethdir/go-ethereum" cd "$ethdir/go-ethereum"

View file

@ -3,7 +3,7 @@
set -e set -e
echo "" > coverage.txt echo "" > coverage.txt
for d in $(find ./* -maxdepth 10 -type d -not -path "./build" -not -path "./Godeps/*" ); do for d in $(find ./* -maxdepth 10 -type d -not -path "./build" -not -path "./vendor/*" ); do
if ls $d/*.go &> /dev/null; then if ls $d/*.go &> /dev/null; then
go test -coverprofile=profile.out -covermode=atomic $d go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then if [ -f profile.out ]; then

View file

@ -152,7 +152,7 @@ func (n *Node) Start() error {
} }
// Otherwise copy and specialize the P2P configuration // Otherwise copy and specialize the P2P configuration
running := new(p2p.Server) running := new(p2p.Server)
*running = *n.serverConfig reflect.ValueOf(running).Elem().Set(reflect.ValueOf(n.serverConfig).Elem()) // Fancy *running = *n.serverConfig to prevent mutex copy
services := make(map[reflect.Type]Service) services := make(map[reflect.Type]Service)
for _, constructor := range n.serviceFuncs { for _, constructor := range n.serviceFuncs {

Some files were not shown because too many files have changed in this diff Show more