DEV Community

Cover image for Solved: go mod tidy: warning: "all" matched no packages / GO debugger does not work in VSCode
Gernot Glawe
Gernot Glawe

Posted on • Edited on

1

Solved: go mod tidy: warning: "all" matched no packages / GO debugger does not work in VSCode

In just some projects go mod tidy did not work.

Now I figured out, why:

If you are inside a working directory, which is a symbolic link, it fails with warning: "all" matched no packages..

When you cd to the linked directory, it works.

go mod tidy

"The expert is amazed and the layman is confused!" - Ancient german proverb!

Update: This also happens with the VSCode debugger.
Could be only a MAC M1 problem...

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay