In our local network, we have a GitLab running. The IP is bind to gitlab.local. I have a go package http://gitlab.local/projectsmall/core, and it is being used by another Go project. Inside this project, when I try to run go mod tidy, I am getting this error:
go get gitlab.local/projectsmall/core: 
unrecognized import path "gitlab.local/projectsmall/core" 
(https fetch: 
  Get https://gitlab.local/projectsmall/core?go-get=1: 
  dial tcp 192.168.28.9:443: 
  connect: connection refused
)
I have added the id_rsa.pub contents to SSH Kyes. I tried to add this core project to go mod path like this: /Users/UserA/go/pkg/mod/gitlab.local/guxin/core. The import "gitlab.local/guxin/core" is still red using GoLand IDE. It seems the go mod project can't find this gitlab.local/guxin/core package. In go.mod file, inside require block, when I added this gitlab.local/guxin/core, the IDE alert: usage: require module/path.
 
     
    