jondot / goweight

A tool to analyze and troubleshoot a Go binary size.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always getting `operation not permitted` all projects

Dentrax opened this issue · comments

I am getting an error while trying this out on an example project. Any ideas?

  1. $ git clone https://github.com/jondot/goweight
  2. Jump to your project
  3. $ goweight
  4. See the error: operation not permitted

macOS - Go v1.15.5

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
  ...
commented

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