I am using Circle CI to test my project. The project is a simple Go application consisting of a few packages and a main.go file. When referencing packages within my project I simply import them as "projectName/packageName" in the code. This works fine locally, however, when I push to git and it gets built on Circle CI I get the following errors.
package crypto-compare-go/handlers: unrecognized import path "crypto-compare-go/handlers" (import path does not begin with hostname)
我通过将 github.com/myGitUsername/projectName 附加到我的本地包导入来解决此问题,这意味着当我在本地开发时如果我更改项目中的一个包,我必须推送到 git,然后拉到能够即使它们都在同一个父项目文件夹下,也要使用它们。这似乎是一个缓慢、非常低效的过程。
以前有人用 Circle CI 遇到过这个问题吗?