streamingfast/solana-go

build error

xwisen opened this issue · 1 comments

  • build command
go get -u -v github.com/streamingfast/solana-go/cmd/slnc
  • error info
github.com/streamingfast/solana-go/cmd/slnc/cmd
# github.com/streamingfast/solana-go/cmd/slnc/cmd
../go/pkg/mod/github.com/streamingfast/solana-go@v0.3.0/cmd/slnc/cmd/common.go:56:21: not enough arguments in call to ws.NewClient
        have (string)
        want (string, bool)
  • go version
[root@VM-16-11-centos autoswap]# go version
go version go1.15.14 linux/amd64
[root@VM-16-11-centos autoswap]# go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/root/go/bin"
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build905322640=/tmp/go-build -gno-record-gcc-switches"

Shouldn't be a problem anymore with latest verison.