Skip to content

Compilation with go 1.22 #52

@antonijakubiak-samsung

Description

@antonijakubiak-samsung

Hi,

Compilation fails with go 1.22.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions