1

我正在尝试使用gopkg安装ginkgogomega。它抛出以下错误:

src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:24:2: use of internal package not allowed
src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:25:2: use of internal package not allowed
src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:26:2: use of internal package not allowed
src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:27:2: use of internal package not allowed
src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:28:2: use of internal package not allowed
src/gopkg.in/onsi/ginkgo.v1/ginkgo_dsl.go:29:2: use of internal package not allowed

src/gopkg.in/onsi/gomega.v1/gomega_dsl.go:21:2: use of internal package not allowed
src/gopkg.in/onsi/gomega.v1/gomega_dsl.go:22:2: use of internal package not allowed
src/gopkg.in/onsi/gomega.v1/gomega_dsl.go:23:2: use of internal package not allowed
4

1 回答 1

0

据我了解,这不是致命错误。即使我收到相同的警告消息,我也能够下载ginkgogomega使用它们。gopkg简要看一下源代码就可以看出这一点,gomega_dsl.goginkgo_dsl.gointernal子目录中导入代码。不过,我不明白为什么这应该是一个问题。尽管有这些警告,但让软件包工作。

于 2018-06-30T19:00:00.527 回答