Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always getting operation not permitted all projects #19

Open
Dentrax opened this issue Jan 16, 2021 · 5 comments
Open

Always getting operation not permitted all projects #19

Dentrax opened this issue Jan 16, 2021 · 5 comments

Comments

@Dentrax
Copy link

Dentrax commented Jan 16, 2021

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

@guschnwg
Copy link

guschnwg commented Jan 27, 2021

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

@Nv7-GitHub
Copy link

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

@yankeexe
Copy link

yankeexe commented Jul 9, 2021

Same on Linux system as well.
Shows the following error:

2021/07/09 12:09:50 permission denied

@Dentrax
Copy link
Author

Dentrax commented Feb 1, 2022

Any updates? @jondot

@Bevisy
Copy link

Bevisy commented Sep 23, 2024

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants