Commit 00a043e
Fix CachyOS repository database errors during build
The build was failing because CachyOS repositories were configured in
pacman.conf but the cachyos-mirrorlist file didn't exist or had no
enabled mirrors. This caused pacman to fail when trying to sync
repository databases.
Changes:
1. Create /etc/pacman.d/cachyos-mirrorlist if it doesn't exist
- Uses official CachyOS CDN: https://cdn.cachyos.org/repo/
- Enables existing mirrors if file exists but commented out
2. Only add CachyOS repos if cachyos-mirrorlist is available
- Prevents configuration errors
3. Make jq installation more robust
- Syncs databases before installing
- Continues build even if some repos fail to sync
- Allows validation to proceed with warnings if jq unavailable
This fixes the GitHub Actions build failures where pacman reported
"database file for 'cachyos' does not exist".
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5859ca7 commit 00a043e
1 file changed
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
208 | 232 | | |
209 | 233 | | |
210 | | - | |
| 234 | + | |
211 | 235 | | |
212 | 236 | | |
213 | 237 | | |
| |||
229 | 253 | | |
230 | 254 | | |
231 | 255 | | |
232 | | - | |
| 256 | + | |
233 | 257 | | |
234 | 258 | | |
235 | 259 | | |
| |||
262 | 286 | | |
263 | 287 | | |
264 | 288 | | |
265 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
266 | 293 | | |
267 | 294 | | |
268 | 295 | | |
| |||
0 commit comments