Azure / oms-log-analytics-firehose-nozzle

Microsoft Azure Log Analytics Nozzle
Apache License 2.0
11 stars 14 forks source link

incompatible type (incompatible type for method 'Debug' (different parameter types)), in main.go #35

Open advancedwebdeveloper opened 3 years ago

advancedwebdeveloper commented 3 years ago

Hi. I was not able run the main executable, on Ubuntu 20.04 x86_64:

$ go run main.go

command-line-arguments

./main.go:169:39: error: argument 1 has incompatible type ./main.go:169:71: error: argument 3 has incompatible type (incompatible type for method 'Debug' (different parameter types)) ./main.go:171:76: error: argument 4 has incompatible type (incompatible type for method 'Debug' (different parameter types)) ./main.go:184:38: error: argument 1 has incompatible type ./main.go:184:54: error: argument 2 has incompatible type (incompatible type for method 'Debug' (different parameter types)) ./main.go:185:35: error: argument 1 has incompatible type (incompatible type for method 'Debug' (different parameter types))

$ go version go version go1.15.2 gollvm LLVM 12.0.0git linux/amd64

$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/oceanfish81/.cache/go-build" GOENV="/home/oceanfish81/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/oceanfish81/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/oceanfish81/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/oceanfish81/gollvm_dist" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/oceanfish81/gollvm_dist/tools" GCCGO="/home/oceanfish81/gollvm_dist/bin/llvm-goc" AR="ar" CC="/usr/bin/clang" CXX="/usr/bin/clang++" CGO_ENABLED="1" GOMOD="" 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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build809405926=/tmp/go-build -gno-record-gcc-switches -funwind-tables"