[Macos/Apple M1] some fork/exec … operation not permitted error

622 views
Skip to first unread message

Denis Cheremisov

unread,
Dec 8, 2020, 10:07:17 AM12/8/20
to golang-nuts
Hi! I installed Go via sources

$ go version
go version devel +9c91cab0da Tue Dec 8 01:46:45 2020 +0000 darwin/arm64

got better performance than I had with my aging Core i5 4670k, etc, this was expectable, no surprises here.

But, there's an issue. When I call `go get`, `go install`, etc via `exec.Command` I get this error:

self check: update pedro-miguel: run go get gitlab.stageoffice.ru/UCS-TOOLS/pedro-miguel: fork/exec /usr/local/go/bin/go: operation not permitted

What may cause this? Launching other utilities works fine:

package main

import (
    "os"
    "os/exec"
)

func main() {
    cmd := exec.Command("echo", "hello!")
    cmd.Stdout = os.Stdout
    if err := cmd.Run(); err != nil {
        panic(err)
    }
}


PS pedro-miguel named after a cascade of locks in Panama channel.

Denis Cheremisov

unread,
Dec 9, 2020, 3:04:56 AM12/9/20
to golang-nuts
Found what causes this. An extended Apple attribute apple.com.quarantine. Set it off, then need to set off some other utilities and now it is done.

вторник, 8 декабря 2020 г. в 18:07:17 UTC+3, Denis Cheremisov:
Reply all
Reply to author
Forward
0 new messages