I have a project I am working on named project1
.
Couple of months ago I worked on project2
which contains package named engine
and I want to use it inside project1
.
These projects are local so I read here how to import local projects and tried it but received an error:
Cannot resolve file `project2`
One interesting thing is that when I type the name of project2
in the import(..)
section, Goland identify it as module but after I press on it I received the error that it can't be resolve.
With Goland I have an option to run sync packages of 'project1'
but when I pressed on it I also received an error:
project1/pkg/utils imports
project2: cannot find module providing package project2
I also tried to create vendor
folder in project1
and copy-paste the whole project2
beneath the vendor
folder but it still didn't help.
Any idea why it doesn't being resolve ?