Commit f168ede
InfoTech.io Bot
fix(workflow): correct Hugo Templates Framework preserve-base-site integration
Hugo Templates Framework was failing on preserve-base-site strategy because
it tried to wget https://info-tech-io.github.io but couldn't download due to
rate limiting/server errors (exit code 8).
The solution is to use the already downloaded current-site from Phase 1
as a local source module instead of making Hugo Templates Framework
download it via wget.
Key Changes:
- Create temporary federation config for preserve-base-site strategy
- Add current-site as local source module with destination '/'
- Use download-merge-deploy strategy with local base site instead of preserve-base-site
- Restructure current-site to match Hugo Templates Framework schema
- Add cleanup for temporary configuration files
Technical Implementation:
- Create current-site/content/ subdirectory for proper schema compliance
- Generate module.json for base site module
- Use jq to create temporary config with local source
- Maintain existing strategy selection logic
This fixes the root cause: wget failure in preserve-base-site mode.
Hugo Templates Framework now uses locally available content instead
of attempting network downloads.
Fixes: #10, Stage: 2 (Implementation)
Resolves: wget exit code 8 error in federated-build.sh --preserve-base-site
Tests: Local validation passed with mock current-site1 parent 98261d6 commit f168ede
1 file changed
Lines changed: 54 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
234 | 280 | | |
235 | | - | |
| 281 | + | |
236 | 282 | | |
237 | | - | |
238 | 283 | | |
239 | 284 | | |
240 | 285 | | |
| |||
246 | 291 | | |
247 | 292 | | |
248 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
249 | 300 | | |
250 | 301 | | |
251 | 302 | | |
| |||
0 commit comments