go version go1.15.2 darwin/amd64
within my folder I have two files: main.go and user.go along with other files such as go.mod, go.sum etc.
when trying to import the package from user.go I get the error in my imports:
no matching versions for query "latest"
user.go
package user
import (
"os"
"os/user"
"path/filepath"
)
main.go
import (
"fmt"
"bufio"
"github.com/ctfrancia/go-dot/user" // <--- error here
// ...
)
I tried following some suggestions such as go clean -modcache as suggested in a git hub issue
I'm using gomods so I don't want to disable it. Thanks