如何解决错误 - 无法识别包:go.opencensus.io 在构建 datacollector-edge 时
我已经创建了目录 $GOPATH/src/github.com/streamsets 。然后将 https://github.com/streamsets/datacollector-edge.git 克隆到其中。当我运行“./gradlew goClean dist publishToMavenLocal”时,在解决了许多依赖项后,我收到以下错误。
任务:resolveBuildDependencies FAILED
FAILURE:构建失败,出现异常。
出了什么问题:任务“:resolveBuildDependencies”执行失败。 解析异常,消息为:无法识别包:go.opencensus.io 解析堆栈为:+- github.com/streamsets/datacollector-edge 我正在尝试解决公司代理背后的依赖关系。请帮我解决这个问题
谢谢, 艾琳娜
解决方法
When I installed Go,the above error got resolved and got a new error as below.
Execution failed for task ':resolveBuildDependencies'.
> Exception in resolution,message is:
Cannot recognize package: pack.ag/amqp
Resolution stack is:
+- github.com/streamsets/datacollector-edge
Once I downloaded and copied pack.ag/amqp package in /user/.gradle/go/repo/ and I ran the command
'./gradlew goClean dist publishToMavenLocal',I got go4.org error as below.
Cannot recognize package: go4.org/syncutil/singleflight
Resolution stack is:
+- github.com/streamsets/datacollector-edge
+- github.com/eclipse/paho.mqtt.golang#adca289fdcf8c883800aafa545bc263452290bae
+- golang.org/x/net#5f4716e94777e714bc2fb3e3a44599cb40817aac
Anyone got any idea about this?
Thanks again.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。