glinuz / db2_exporter

Prometheus IBM DB2 exporter
MIT License
17 stars 7 forks source link

Error building project #11

Open teopost opened 1 year ago

teopost commented 1 year ago

Hi, i get this error doing project build

[root@azwetdb01 db2_exporter-2]# go build main.go
go: inconsistent vendoring in /opt/db2_exporter-2:
    github.com/beorn7/perks@v0.0.0-20150223135152-b965b613227f: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/golang/protobuf@v0.0.0-20160817174113-f592bd283e9e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/matttproud/golang_protobuf_extensions@v1.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/prometheus/client_golang@v0.0.0-20160223122730-18acf9993a86: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/prometheus/client_model@v0.0.0-20150212101744-fa8ad6fec335: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/prometheus/common@v0.0.0-20160801171955-ebdfc6da4652: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/prometheus/procfs@v0.0.0-20151029195050-406e5b7bfd82: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    golang.org/x/sys@v0.0.0-20160204225817-50c6bc5e4292: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/BurntSushi/toml@v1.2.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
    github.com/ibmdb/go_ibm_db@v0.4.2: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

    To ignore the vendor directory, use -mod=readonly or -mod=mod.
    To sync the vendor directory, run:
        go mod vendor
[root@azwetdb01 db2_exporter-2]#
glinuz commented 1 year ago

downgrade go version.no supoort go mod