From f0dc26745056e8028bfec5d7abb106ed63fc5fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Sat, 30 Dec 2017 19:41:04 +0200 Subject: [PATCH 1/2] travis, appveyor: upgrade to Go 1.10beta1 --- .travis.yml | 27 +++++++++++++++++++-------- appveyor.yml | 4 ++-- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index bc296bf2f161..096169700876 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,6 @@ matrix: - go run build/ci.go install - go run build/ci.go test -coverage - # These are the latest Go versions. - os: linux dist: trusty sudo: required @@ -37,8 +36,20 @@ matrix: - go run build/ci.go install - go run build/ci.go test -coverage + # These are the latest Go versions. + - os: linux + dist: trusty + sudo: required + go: 1.10beta1 + script: + - sudo modprobe fuse + - sudo chmod 666 /dev/fuse + - sudo chown root:$USER /etc/fuse.conf + - go run build/ci.go install + - go run build/ci.go test -coverage + - os: osx - go: 1.9.x + go: 1.10beta1 script: - brew update - brew install caskroom/cask/brew-cask @@ -49,7 +60,7 @@ matrix: # This builder only tests code linters on latest version of Go - os: linux dist: trusty - go: 1.9.x + go: 1.10beta1 env: - lint git: @@ -61,7 +72,7 @@ matrix: - os: linux dist: trusty sudo: required - go: 1.9.x + go: 1.10beta1 env: - ubuntu-ppa - azure-linux @@ -101,7 +112,7 @@ matrix: dist: trusty services: - docker - go: 1.9.x + go: 1.10beta1 env: - azure-linux-mips git: @@ -145,7 +156,7 @@ matrix: git: submodules: false # avoid cloning ethereum/tests before_install: - - curl https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | tar -xz + - curl https://storage.googleapis.com/golang/go1.10beta1.linux-amd64.tar.gz | tar -xz - export PATH=`pwd`/go/bin:$PATH - export GOROOT=`pwd`/go - export GOPATH=$HOME/go @@ -162,7 +173,7 @@ matrix: # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads - os: osx - go: 1.9.x + go: 1.10beta1 env: - azure-osx - azure-ios @@ -190,7 +201,7 @@ matrix: - os: linux dist: trusty sudo: required - go: 1.9.x + go: 1.10beta1 env: - azure-purge git: diff --git a/appveyor.yml b/appveyor.yml index 99029f553d21..d026499084bc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,8 +23,8 @@ environment: install: - git submodule update --init - rmdir C:\go /s /q - - appveyor DownloadFile https://storage.googleapis.com/golang/go1.9.2.windows-%GETH_ARCH%.zip - - 7z x go1.9.2.windows-%GETH_ARCH%.zip -y -oC:\ > NUL + - appveyor DownloadFile https://storage.googleapis.com/golang/go1.10beta1.windows-%GETH_ARCH%.zip + - 7z x go1.10beta1.windows-%GETH_ARCH%.zip -y -oC:\ > NUL - go version - gcc --version From 0d4ad7709a7b820598b5ce76a6715e9cf2ff7a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 3 Jan 2018 12:44:53 +0200 Subject: [PATCH 2/2] vendor: try macos fs notify runloop fix from @fjl --- vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go | 5 +++++ vendor/vendor.json | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go b/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go index fb70de6af031..28ba7d0e2af1 100644 --- a/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go +++ b/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go @@ -26,6 +26,7 @@ import "C" import ( "errors" "os" + "runtime" "sync" "sync/atomic" "time" @@ -63,6 +64,10 @@ var ( func init() { wg.Add(1) go func() { + // There is exactly one run loop per thread. Lock this goroutine to its + // thread to ensure that it's not rescheduled on a different thread while + // setting up the run loop. + runtime.LockOSThread() runloop = C.CFRunLoopGetCurrent() C.CFRunLoopAddSource(runloop, source, C.kCFRunLoopDefaultMode) C.CFRunLoopRun() diff --git a/vendor/vendor.json b/vendor/vendor.json index 17844bd8ddef..dacced657004 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -286,10 +286,10 @@ "revisionTime": "2016-11-28T21:05:44Z" }, { - "checksumSHA1": "tnQdt7bxmueZFl0EPrW9YrWiqGg=", + "checksumSHA1": "lhq+IT6eusmK2Ortmhen0qT3wJM=", "path": "github.com/rjeczalik/notify", - "revision": "e1801ee34d54c4bf45126ef51fe9750b4e42bee8", - "revisionTime": "2017-12-10T15:45:11Z" + "revision": "b76ef5c8085eae5170c0b1e3abbd94e41e086bfb", + "revisionTime": "2018-01-03T10:29:26Z" }, { "checksumSHA1": "5uqO4ITTDMklKi3uNaE/D9LQ5nM=",