skip to Main Content

I get this error, while I import gorm package into my project.
I am using Goland on Ubuntu 22.

Build constraints exclude all the Go files in '/home/masoud/go/src/gorm.io/gorm'

2

Answers


  1. Chosen as BEST ANSWER

    It fixed! I deleted project and its directory, and I cloned it again from git. after that I ran: go mod tidy and boom, I can develop smoothly.


  2. It seems that the issue for me was as simple as using

    go clean -modcache

    and then following that with

    go mod tidy

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search