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
[BUG] Scaffold .gitignore is Python-only: blanket dist/ breaks JS Action repos, Node ignores dropped, not upgrade-persistent #1024
Surfaced by the commit-action direnv pilot (1.1.0). The scaffolded .gitignore
is the stock Pythongithub/gitignore template, which is wrong for Node /
GitHub Action consumers on two counts:
Blanket dist/ ignore breaks JS Action repos. A JS GitHub Action commits
its bundled entrypoint (dist/index.js, referenced by action.yml runs.main). The scaffold's dist/ line ignores that committed bundle, so git add dist/… silently no-ops on new bundle files.
Node ignores are dropped. No node_modules/, *.tsbuildinfo, coverage/, .nyc_output/ — so a fresh npm ci leaves node_modules/
untracked-but-not-ignored, easy to commit by accident.
Compounding both: .gitignore is a managed/overwritten scaffold file, so a
consumer's hand-fix does not survive the next install.sh/upgrade.
Impact
Any Node/TS consumer (commit-action, sync-issues-action, …) must hand-edit .gitignore after every devkit upgrade, and risks either ignoring a committed
artifact (dist/) or committing node_modules/.
Repro
Deploy any mode to a Node repo and inspect .gitignore:
git check-ignore node_modules # -> not ignored
git check-ignore dist/index.js # -> IGNORED (should be tracked for a JS action)
Options
Make the scaffold .gitignorelanguage-aware (detect package.json / Cargo.toml and emit the matching ignore set), or ship a small language-neutral
base + language fragments.
Or provide a preserved .gitignore.project companion (same
scaffold-once/never-overwrite guarantee as justfile.project / docker-compose.project.yaml) that consumers own.
At minimum, do not blanket-ignore dist/ (scope it to Python build output),
and document the Node/Action ignore additions.
Notes
Non-blocking for 1.1.0; found during the pilot rollout. Workaround applied in
commit-action: removed dist/, restored the Node/Action ignore section.
Fixed in #1035 (merged to dev): language-neutral base + per-language fragments assembled by init-workspace.sh on every (re)scaffold — Node consumers get Node ignores and no blanket dist/; upgrade-persistent.
Activity
build(devkit): adopt vigOS devkit 1.1.0 (direnv) — rollout pilot (#32)
fix(setup): render language-aware scaffold .gitignore and codeql matr…
c-vigo commentedon Jul 14, 2026
Fixed in #1035 (merged to dev): language-neutral base + per-language fragments assembled by init-workspace.sh on every (re)scaffold — Node consumers get Node ignores and no blanket dist/; upgrade-persistent.
feat(image): add node capability module with first-scaffold npm recip…
chore: release 1.2.0 (#253)
chore: release 1.2.0 (#1068)