You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make USE_PGXS=1 with_llvm=no GO_CLIENT=1
[...]
go build -buildmode=c-archive query.go
query.go:67:2: no required module provides package github.com/influxdata/influxdb1-client/models: go.mod file not found in current directory or any parent directory; see 'go help modules'
query.go:68:2: no required module provides package github.com/influxdata/influxdb1-client/v2: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile:95: query.a] Error 1
A fix is to add go.mod file.
module github.com/pgspider/influxdb_fdw
go 1.22
require github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c // indirect
Kind regards
Antoni Jakubiak
The text was updated successfully, but these errors were encountered:
Thank you for highlighting the issue with Go 1.22. I have confirmed that your suggestion to add a go.mod file is correct. Alternatively, to resolve the problem, I initialized the Go module and added the necessary dependencies with the following commands:
go mod init github.com/pgspider/influxdb_fdw
go get github.com/influxdata/influxdb1-client/v2
go mod tidy
I will consider adding the go.mod file to the repository in the next update. Thanks again for your valuable input.
Hi,
Compilation fails with go 1.22.
A fix is to add
go.mod
file.Kind regards
Antoni Jakubiak
The text was updated successfully, but these errors were encountered: