CompileDaemon icon indicating copy to clipboard operation
CompileDaemon copied to clipboard

Install for go 1.18+

Open Lehp opened this issue 3 years ago • 10 comments

Go dropped go get for cmd-tools.

executing go install github.com/githubnemo/COmpileDaemon/cmd does not work.

Lehp avatar Mar 23 '22 15:03 Lehp

go install github.com/githubnemo/CompileDaemon@latest

this worked for me!

ugurozsahin avatar Apr 01 '22 21:04 ugurozsahin

When I execute the command it brings a lot of messages, and all of them contains "go:linkname must refer to declared function or variable"

Sebastian-Moctezuma avatar May 20 '22 03:05 Sebastian-Moctezuma

Well can you provide us with those messages? Maybe @latest is not the smartest. It was only to get the version which supports go 1.18 modules

Lehp avatar May 20 '22 07:05 Lehp

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_arm64.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_arm64.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_arm64.go:28:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable ../../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors

This is what I get when I try to install it

Sebastian-Moctezuma avatar May 20 '22 14:05 Sebastian-Moctezuma

Looksl ike internal package error try to install historic version with git tag of repo or commitHash

Lehp avatar May 20 '22 16:05 Lehp

With go 1.19, I'm also facing the above issue.

$ go install github.com/githubnemo/CompileDaemon@latest                                                                                           
# 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_arm64.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_arm64.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_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors

Tried using absolute version instead of latest and got the same results. Does anyone know any workarounds for this?

amjd avatar Aug 24 '22 16:08 amjd

I got things working with go 1.19.2 on os x 12.6 by running the following from within a go module:

go get -u github.com/githubnemo/CompileDaemon
go install github.com/githubnemo/CompileDaemon
go mod tidy

The trailing go mod tidy was to remove CompileDaemon entries from the go.mod dependencies.

jodegaard-receptiviti avatar Oct 24 '22 18:10 jodegaard-receptiviti