Fix GoLand not finding module dependencies ("cannot resolve…")?

Issue

I have installed my project’s Go module dependencies with go build.

But GoLand is telling me it cannot resolve any of these dependencies.

How can I get GoLand to find the Go module dependencies?

Solution

Make sure that you have Go Modules support enabled.

In your preferences go to Go > Go Modules (vgo) and check “Enable Go Modules”:

enter image description here

Answered By – sdgluck

Answer Checked By – Mary Flores (GoLangFix Volunteer)

Leave a Reply

Your email address will not be published.