Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

go mod tidy gives operation not permitted messages

Why does running go mod tidy give me these messages in the terminal?

go mod tidy
pattern all: open /Users/Jumpman/.Trash: operation not permitted

There are a handful of these messages with different paths all ending with operation not permitted. For reference I’m using go version 1.17

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Every go module should be in a dedicated directory. Yours appears to be within your home directory.

Create a subdirectory within your home directory, and move go.mod, go.sum, and your go code there.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading