-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
Hi! First of all, thanks for making this tool.
I've tried to compile this on my machine, an Intel MacBook w/ macOS 12.4 installed, but the compilation throws an error:
$ go build main.go
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/[email protected]/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.1_13.go:27:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.1_13.go:40:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_amd64.go:121:3: too many errors
Doing a little digging, I've found out that the culprit may be an outdated logrus
version:
$ go mod why -m golang.org/x/sys
# golang.org/x/sys
github.com/houqp/sqlvet
github.com/sirupsen/logrus
golang.org/x/sys/unix
Updating logrus
indeed solves the problem:
go get -u github.com/sirupsen/logrus
go: upgraded github.com/sirupsen/logrus v1.4.2 => v1.8.1
go: upgraded golang.org/x/sys v0.0.0-20191002091554-b397fe3ad8ed => v0.0.0-20220708085239-5a0f0661e09d
Not sure if it's the best approach, but hopefully the report will be useful!
Metadata
Metadata
Assignees
Labels
No labels