WARNING: changeCache: Giving up, accepting #5710374 even though #5710373 is missing -- db.(*changeCache)._addPendingLogs() at change_cache.go:320
GO_MAJOR_MINOR_VERSION=`go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'`
if [[ $(echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc) -eq 0 ]]; then
echo "*** Go 1.3 or higher is required to build Sync Gateway; you have" `go version`
echo "Please visit http://golang.org/doc/install or use your package manager to upgrade."
exit 1
fi
If you modify the first line in go.sh to output debug info:
#!/bin/bash -xv
Then run build.sh again, you should see output similar to this (taken from my dev laptop)
GO_MAJOR_MINOR_VERSION=`go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'`
go version | sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'
++ go version
++ sed -E 's/.*go([0-9]\.[0-9]+).*/\1/'
+ GO_MAJOR_MINOR_VERSION=1.4
if [[ $(echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc) -eq 0 ]]; then
echo "*** Go 1.3 or higher is required to build Sync Gateway; you have" `go version`
echo "Please visit http://golang.org/doc/install or use your package manager to upgrade."
exit 1
fi
echo "$GO_MAJOR_MINOR_VERSION >= 1.3" | bc
++ echo '1.4 >= 1.3'
++ bc
+ [[ 1 -eq 0 ]]
Could you post the debug output from your local build.
Andy