Open Dentrax opened 3 years ago
Go with sudo
. Not ideal, but works. Probably macOS blocks something that goweight
uses.
➜ golang git:(main) goweight cmd/server/main.go
2021/01/27 20:02:01 operation not permitted
➜ golang git:(main) sudo goweight cmd/server/main.go
22 MB github.com/maxence-charriere/go-app/v7/pkg/app
4.0 MB net/http
3.9 MB runtime
...
It was working with sudo
earlier, but now it doesn't even work with sudo. It is printing with a timestamp though, so it seems different. Now it is doing 2021/03/14 17:42:33 operation not permitted
Same on Linux system as well. Shows the following error:
2021/07/09 12:09:50 permission denied
Any updates? @jondot
Any updates? @jondot
The reason is that there is a problem with the level of directory traversal. You can fix this by:
// add "/" suffix to work directory, or zenv root directory will be wrong
modules := weight.Process(work + "/")
Or you can use the fork version https://github.com/Bevisy/goweight .
I am getting an error while trying this out on an example project. Any ideas?
$ git clone https://github.com/jondot/goweight
$ goweight
operation not permitted
macOS - Go v1.15.5