Skip to content

"permission denied" errors when doing gopherjs build of sample program. #4

@dmitshur

Description

@dmitshur

First of all, this looks like a really cool project and it's great to see how far you got! I tried it just got the following problem.

$ cat play_js.go 
package main

import "fmt"

func main() {
    alert("Hello, JavaScript")
    fmt.Println("Hello, playground")
}

func alert(msg string) {}

const js_alert = `window.alert(msg);`
$ gopherjs build play_js.go 
/Users/Dmitri/Desktop/play_js.go:3:8: could not import fmt (/usr/local/go/src/pkg/fmt/print.go:10:2: could not import os (/usr/local/go/src/pkg/os/dir_unix.go:11:2: could not import syscall (/usr/local/go/src/pkg/syscall/exec_bsd.go:10:2: could not import runtime (open /usr/local/go/src/pkg/runtime/zgoarch_js.go: permission denied))))
$ ls -la /usr/local/go/src/pkg/fmt/print.go
-rw-r--r--  1 root  wheel  30639 28 Nov 13:42 /usr/local/go/src/pkg/fmt/print.go

Any idea why that'd be? The files in my GOROOT are readable by user, group, others.

Running go version go1.2 darwin/amd64 on OS X 10.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions