foundweekends / foundweekends/conscript

Conscript incorrectly reports "Repository not found on github" when it can't find a branch

未关闭
#108 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug
主要语言
Scala
星标
477
派生
59
平均合并
1 小时 2 分钟
30 天内合并 PR
7

描述

When conscript fails to find the default "master" branch -- or the specified branch if one is specified -- then it incorrectly reports "Repository not found on github" rather than reporting that it cannot find the branch.

Example:
Type: cs sbt/sbt
Result: "Repository not found on github" because there is no "master" branch

Type: cs sbt/sbt --branch 0.13.12 # from http://www.scala-sbt.org/release/docs/Scripts.html
Result: Result: "Repository not found on github" because there is no 0.13.12 branch

Type: cs sbt/sbt --branch 0.13
Result: works (at the time of this writing)

This was very confusing as a complete newbie trying to figure out what was going wrong until I realized it simply wasn't findng the branch.

贡献指南

这个仓库没有索引到贡献指南

调研方向

使用 `cs sbt/sbt`、`--branch 0.13.12` 和 `--branch 0.13` 重现该问题,以确认不同分支的结果。跟踪分支查找和错误报告路径;当缺失的默认分支或指定分支报告找不到该分支,而不是声称仓库缺失时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
scala
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。