foundweekends / foundweekends/conscript

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

Open
#108 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Scala
Stars
477
Forks
59
Avg merge
1h 2m
Merged PRs (30d)
7

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `cs sbt/sbt`, `--branch 0.13.12`, and `--branch 0.13` to confirm the different branch outcomes. Trace the branch lookup and error-reporting path; done means a missing default or specified branch reports that the branch cannot be found instead of claiming the repository is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.