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
CodePudding user response:
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.