justwatchcom / sql_exporter

Flexible SQL Exporter for Prometheus.
MIT License
402 stars 109 forks source link

Missing /src/vendor/net/netip #94

Closed djuarezg closed 1 year ago

djuarezg commented 1 year ago

This is the following error I am getting while building:

>> formatting code
>> building binaries
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/azcore: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/azcore/policy: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/azcore/policy
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
    imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported
    imports github.com/Azure/azure-sdk-for-go/sdk/internal/log: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/internal/log
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror
package github.com/justwatchcom/sql_exporter
    imports github.com/snowflakedb/gosnowflake
    imports github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container: build constraints exclude all Go files in /src/vendor/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container
vendor/github.com/ClickHouse/ch-go/proto/ipv4.go:5:2: cannot find package "." in:
    /src/vendor/net/netip
make: *** [Makefile:43: build] Error 1

EDIT: Upgrade golang to at least 1.20

dewey commented 1 year ago

Thanks, was just checking that but couldn't replicate :)