Skip to content

Install for go 1.18+ #75

Open
Open

Description

@Lehp

Go dropped go get for cmd-tools.

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

Activity

  1. ugurozsahin commented on Apr 1, 2022

    @ugurozsahin

    go install github.com/githubnemo/CompileDaemon@latest

    this worked for me!

  2. Sebastian-Moctezuma commented on May 20, 2022

    @Sebastian-Moctezuma

    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"

  3. Lehp commented on May 20, 2022

    @Lehp
    Author

    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

  4. Sebastian-Moctezuma commented on May 20, 2022

    @Sebastian-Moctezuma

    golang.org/x/sys/unix
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/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-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
    ../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:121:3: too many errors

    This is what I get when I try to install it

  5. Lehp commented on May 20, 2022

    @Lehp
    Author

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

  6. amjd commented on Aug 24, 2022

    @amjd

    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/sys@v0.0.0-20191026070338-33540a1f6037/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-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
    ../../go/pkg/mod/golang.org/x/sys@v0.0.0-20191026070338-33540a1f6037/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?

  7. jodegaard-receptiviti commented on Oct 24, 2022

    @jodegaard-receptiviti

    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.

  8. ivorscott commented on Feb 5, 2023

    @ivorscott

    I got things working with go 1.20 on an Apple Silicon device os x 13.1. Download the code, build it manually, make it executable and then move the binary to your local bin folder.

    git clone github.com/githubnemo/CompileDaemon
    cd CompileDaemon
    go build -o CompileDaemon .
    chmod +x CompileDaemon
    sudo mv CompileDaemon /usr/local/bin
    
  9. mannfuri commented on Feb 19, 2023

    @mannfuri

    I got things working with go 1.20 on an Apple Silicon device os x 13.1. Download the code, build it manually, make it executable and then move the binary to your local bin folder.

    git clone github.com/githubnemo/CompileDaemon
    cd CompileDaemon
    go build -o CompileDaemon .
    chmod +x CompileDaemon
    sudo mv CompileDaemon /usr/local/bin
    

    great!
    thanks sir!

  10. RenatoLopes771 commented on Feb 11, 2024

    @RenatoLopes771

    go install github.com/githubnemo/CompileDaemon@latest

    this worked for me!

    I did this and also restarted my system and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions