错误:运行 travis cli 命令时找不到资源({})。

huangapple go评论84阅读模式
英文:

Error: resource not found ({} ) when running travis cli command

问题

我尝试运行travis命令时,每次都会收到此消息。这是最小可重现的示例:

$ travis version
1.11.1
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
$ travis status
resource not found ({}
)

我使用的是macOS Ventura / Apple Silicon。

我尝试过不同的Ruby版本,重新安装了Travis CLI,但没有成功。

英文:

I am getting this message whenever I try to run a travis command.
This is the minimal reproducible example:

$ travis version
1.11.1
$ ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
$ travis status
resource not found ({}
)

I am on macOS Ventura / Apple Silicon

I have tried different rub versions, reinstalled the Travis CLI, no success.

答案1

得分: 2

在联系Travis支持后,我收到建议首先使用Travis CLI登录,如下:

travis login --pro --github-token GITHUB_PERSONAL_ACCESS_TOKEN

其中,GITHUB_PERSONAL_ACCESS_TOKEN 可在GitHub中找到:

Settings > Developer Settings > Personal access tokens

然后,我可以执行Travis CLI任务而无需进一步的错误。

虽然这解决了我的问题,但我仍然认为Travis CLI的这种行为是一个错误。

英文:

After reaching out to travis support I got the suggestion to first log in using the travis cli like this:

travis login --pro --github-token GITHUB_PERSONAL_ACCESS_TOKEN

Where GITHUB_PERSONAL_ACCESS_TOKEN can be found on GitHub under:
Settings > Developer Settings > Personal access tokens

I could then perform my travis cli tasks without further errors.

While this solved my problem, I still consider this behaviour of the travis CLI a bug.

huangapple
  • 本文由 发表于 2023年5月10日 23:01:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76219974.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定