You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build0.sh fails when repo is forked in Github #1396
This morning, I created a fork of lcompilers/lpython so that I could submit pull requests according to github's recommendations. I got a cascade of build and test failures that I traced back to ./ci/version.sh, which calls git describe --tags --dirty. This call fails because the fork doesn't have any tags. It works only if executed in a clone of the original repo.
When executed in the fork, I get ...
(lp) ┌─(~/Documents/GitHub/lpython)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s004)─┐
└─(11:57:38 on main ✭)──> ./ci/version.sh ──(Tue,Jan03)─┘
++ git describe --tags --dirty
fatal: No names found, cannot describe anything.
+ version=
Activity
Thirumalai-Shaktivel commentedon Jan 4, 2023
Fetching tags from origin might work.
and then Let's make a clean build:
certik commentedon Jan 4, 2023
This failure happens when there are missing tags. I noticed it can be fragile sometimes, so we should make the script more robust against this.