Commit 460a352
fix: install git before checkout in fedora build-binaries job
The previous fix (git config safe.directory) addressed the wrong problem.
The checkout step's own log revealed the real cause: fedora:latest ships
with no git preinstalled, and git was only installed in a step that ran
*after* actions/checkout. Without git in PATH, actions/checkout silently
falls back to downloading a plain source tarball via the GitHub REST API
instead of doing a real clone -- producing a directory with no .git at all,
which is why scripts/compute_version.sh's `git rev-list --count HEAD` failed
with "not a git repository". Moved the dnf install step (which includes git)
to run before actions/checkout so a real git clone happens.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 5bf93c7 commit 460a352
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| |||
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments