英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论