timeplus-io / proton-go-driver

Go driver for Timeplus Proton
https://timeplus.com
Apache License 2.0
4 stars 3 forks source link

Latest code doesnt work for Linux Arm (32) #63

Open jovezhong opened 10 months ago

jovezhong commented 10 months ago

Issue description

Tell us what should happen and what happens instead

I am trying to use the latest code to compile grafana plugin and got this error

github.com/timeplus-io/proton-go-driver/v2/lib/column

../../../go/pkg/mod/github.com/timeplus-io/proton-go-driver/v2@v2.0.16/lib/column/lowcardinality.go:219:31: math.MaxUint32 (untyped int constant 4294967295) overflows int

Okay, this only breaks trying to build for 32bit arm build for Linux, so very low impact

mage build:linuxARM

github.com/timeplus-io/proton-go-driver/v2/lib/column

../../../go/pkg/mod/github.com/timeplus-io/proton-go-driver/v2@v2.0.16/lib/column/lowcardinality.go:219:31: math.MaxUint32 (untyped int constant 4294967295) overflows int Error: running "go build -o dist/gpx_timeplus_proton_linux_arm -ldflags -w -s -extldflags "-static" -X 'main.version=1.0.3' -X 'main.pluginID=timeplus-proton-datasource' -X 'main.branch=main' -X 'main.commit=332357085397ae262d07aaf1af2586c3bc420a18' -X 'github.com/grafana/grafana-plugin-sdk-go/build.buildInfoJSON={"time":1702602063444,"pluginID":"timeplus-proton-datasource","version":"1.0.3","repo":"https://github.com/timeplus-io/proton-grafana-source.git","branch":"main","hash":"332357085397ae262d07aaf1af2586c3bc420a18"}' ./pkg" failed with exit code 1