为什么不能从CircleCi运行时1.13.4识别我标记的版本

问题描述 投票:-1回答:1

我无法从CircleCi下载我最新发布的go软件包。在本地有效。我可以通过访问来验证我要使用的标签是否可用https://github.com/acme/my-lib/tree/v0.0.3

但是,go get不会下载。

我也有GOPRIVATE=github.com/acme/,也尝试过github.com/acme/*,结果相同。

正在运行go get返回此

go: finding github.com/acme/my-lib v0.0.3
go: github.com/acme/[email protected]: unknown revision v0.0.3
go: error loading module requirements

go.mod

module github.com/acme/project

require (
          github.com/acme/my-lib v0.0.3
)

为什么从CircleCi运行时为什么无法识别我的标记版本?

我也尝试过更改.git/config

[remote "origin"]
        # url = [email protected]:acme/my-lib.git
        url = https://github.com/acme/my-lib.git

https或ssh均不起作用。

git ls-remote from desktop

git ls-remote https://github.com/acme/my-lib | ack v0.0.3
$SHA        refs/tags/v0.0.3

git ls-remote from circleci

git ls-remote https://github.com/acme/my-lib | grep v0.0.3
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
git go circleci go-packages
1个回答
0
投票

您需要配置Circle CI以便能够读取其他私有存储库:https://circleci.com/docs/2.0/gh-bb-integration/#enable-your-project-to-check-out-additional-private-repositories

为了能够创建可复制的版本,您是否考虑过在/ acme / project:https://tip.golang.org/cmd/go/#hdr-Modules_and_vendoring中出售?

© www.soinside.com 2019 - 2024. All rights reserved.