Add .hero/ to gitignore in all Hero repos #250

Open
opened 2026-05-12 13:01:19 +00:00 by casper-stevens · 0 comments
Member

Problem

lab generates machine-specific build artifacts under .hero/ in every Hero repo:

  • .hero/build_map.json — contains absolute repo_root path (machine-specific, breaks on other machines)
  • .hero/build_report.json — build output report
  • .hero/build_report.md — human-readable build report
  • .hero/build_logs/ — build logs

These files are not read by anything downstream (confirmed by searching the codebase). Committing them causes:

  • Noisy diffs on every build
  • Broken paths when the repo is checked out on a different machine (different repo_root)

Fix

Add .hero/ to .gitignore in every Hero repo, or add it once to the global gitignore template used when initialising repos.

hero_slides already does this correctly with .hero in its .gitignore.

Why not global gitignore

Per-user ~/.gitignore_global only covers individual machines. The per-repo .gitignore is the right place so it is enforced for all contributors.

Action

For each repo under lhumina_code/ that uses lab to build: add .hero/ to .gitignore.

## Problem `lab` generates machine-specific build artifacts under `.hero/` in every Hero repo: - `.hero/build_map.json` — contains absolute `repo_root` path (machine-specific, breaks on other machines) - `.hero/build_report.json` — build output report - `.hero/build_report.md` — human-readable build report - `.hero/build_logs/` — build logs These files are not read by anything downstream (confirmed by searching the codebase). Committing them causes: - Noisy diffs on every build - Broken paths when the repo is checked out on a different machine (different `repo_root`) ## Fix Add `.hero/` to `.gitignore` in every Hero repo, or add it once to the global gitignore template used when initialising repos. `hero_slides` already does this correctly with `.hero` in its `.gitignore`. ## Why not global gitignore Per-user `~/.gitignore_global` only covers individual machines. The per-repo `.gitignore` is the right place so it is enforced for all contributors. ## Action For each repo under `lhumina_code/` that uses `lab` to build: add `.hero/` to `.gitignore`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_skills#250
No description provided.