hashicorp / go-discover

Discover nodes in cloud environments
Mozilla Public License 2.0
560 stars 122 forks source link

All tests currently fail on macOS 12.4 and Go 1.18 #199

Open prologic opened 2 years ago

prologic commented 2 years ago

See:

(⎈ |local:default)
prologic@Jamess-iMac
Thu Aug 11 14:19:41
~/Contributions/go-discover
 (master) 0
$ go test ./...
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191022100944-742c48ecaeb7/unix/zsyscall_darwin_amd64.go:121:3: too many errors
FAIL    github.com/hashicorp/go-discover [build failed]
FAIL    github.com/hashicorp/go-discover/provider/aliyun [build failed]
FAIL    github.com/hashicorp/go-discover/provider/aws [build failed]
FAIL    github.com/hashicorp/go-discover/provider/azure [build failed]
FAIL    github.com/hashicorp/go-discover/provider/digitalocean [build failed]
FAIL    github.com/hashicorp/go-discover/provider/gce [build failed]
FAIL    github.com/hashicorp/go-discover/provider/k8s [build failed]
FAIL    github.com/hashicorp/go-discover/provider/linode [build failed]
FAIL    github.com/hashicorp/go-discover/provider/mdns [build failed]
FAIL    github.com/hashicorp/go-discover/provider/os [build failed]
FAIL    github.com/hashicorp/go-discover/provider/packet [build failed]
FAIL    github.com/hashicorp/go-discover/provider/scaleway [build failed]
FAIL    github.com/hashicorp/go-discover/provider/softlayer [build failed]
FAIL    github.com/hashicorp/go-discover/provider/tencentcloud [build failed]
FAIL    github.com/hashicorp/go-discover/provider/triton [build failed]
FAIL    github.com/hashicorp/go-discover/provider/vsphere [build failed]

Looking into why...

prologic commented 2 years ago

There's also a couple of problems with some dependencies:

go: github.com/hashicorp/go-discover/provider/vsphere imports
    github.com/hashicorp/vic/pkg/vsphere/tags imports
    github.com/Sirupsen/logrus: github.com/Sirupsen/logrus@v1.9.0: parsing go.mod:
    module declares its path as: github.com/sirupsen/logrus
            but was required as: github.com/Sirupsen/logrus

and

go: github.com/googleapis/gnostic@v0.6.9: parsing go.mod:
    module declares its path as: github.com/google/gnostic
            but was required as: github.com/googleapis/gnostic
prologic commented 2 years ago

These dependencies are going to have to be fixed first I think.

smantic commented 2 years ago

go get golang.org/x/sys to fix outdated sys version this go version is using