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] Managed .gitignore rewrite (#1024) drops consumer-required ignores with no durable committed extension point for repo-root paths #1092
The 1.2.0 language-aware managed .gitignore (#1024) drops ignores that certain consumers require, and the managed file's own advice — "Put repo-specific ignores in a committed file your team owns instead" — has no valid form for a repo-root path, because git only honors a root ignore from the root .gitignore, which devkit overwrites on every upgrade.
Surfaced upgrading the commit-action pilot (direnv mode, Node, flake-generated hooks) from 1.1.0 → 1.2.0.
Two concrete losses on upgrade
.pre-commit-config.yaml (flake-hooks opt-in). A consumer that opts into flake-generated hooks (hooks = { } in flake.nix, a documented, supported option) gets .pre-commit-config.yaml installed as a /nix/store symlink. It must be gitignored — committing it pushes a machine-local, broken symlink. The 1.1.0 managed .gitignore ignored it; the 1.2.0 rewrite dropped it. There is no committed extension point for this root-level path other than the managed root .gitignore, so the consumer must re-edit a file stamped "regenerated on upgrade; local edits are lost."
dist/src/ byproducts (Node/JS Action). The Node fragment correctly drops the blanket dist/ ignore so dist/index.js stays tracked ([BUG] Scaffold .gitignore is Python-only: blanket dist/ breaks JS Action repos, Node ignores dropped, not upgrade-persistent #1024), but it also drops any handling of the tsc/ncc declaration byproducts under dist/src/ (.d.ts, .d.ts.map). Those .d.ts.map files embed absolute file:// paths (regenerated per checkout), so a whole-tree git status-based dist gate fails on them after just bundle. (This one does have a workaround — a nested dist/.gitignore — so it is the milder half.)
Impact
After a clean, supported install.sh --force upgrade, a flake-hooks Node consumer's pre-commit suite and dist gate are red until they hand-restore ignores the upgrade silently removed — with no warning and, for the root-level case, no durable place to put them.
Suggested fix (one or more)
Have init-workspace.shappend a consumer-owned .gitignore fragment (e.g. .gitignore.local, or an assets/gitignore.d/-style consumer slot) that the managed regeneration preserves and re-includes — giving root-level paths a durable committed home.
When the flake-hooks opt-in is detected (hooks = { } / a .pre-commit-config.yaml symlink into the store), seed the .pre-commit-config.yaml ignore automatically.
For Node consumers, re-add a byproduct ignore (dist/** except the committed bundle entrypoints, or dist/*.tsbuildinfo + dist/src/) so dist/src/ declaration output is ignored while dist/index.js/dist/package.json stay tracked.
Interim workaround (applied in commit-action)
Nested dist/.gitignore (/src/) for the byproducts (durable), and re-added the .pre-commit-config.yaml line to the managed root .gitignore (not durable — will need re-adding on the next upgrade until this is fixed).
Scope note (from #1096 triage): the durable consumer-owned root ignore slot introduced here should also resolve the self-contradiction at assets/workspace/flake.nix:68, which currently instructs the flake-hooks opt-in consumer to add .pre-commit-config.yaml to the managed root .gitignore — an edit the next upgrade destroys. Redirect that instruction to the new durable slot (or seed the ignore automatically) as part of this fix.
Fixed by #1100 (merged to dev, commit 9a3aa179; ships in the next release). Shipped: a preserved, consumer-owned .gitignore.project (mirroring justfile.project) whose contents init-workspace.sh appends to the regenerated root .gitignore on every upgrade — the durable committed home for repo-root ignores; the flake-hooks /nix/store-symlink .pre-commit-config.yaml ignore is now auto-seeded (gated on the symlink, so a hand-managed file is untouched); the Node fragment ignores dist/src/ byproducts while keeping the committed bundle tracked; and flake.nix no longer instructs the doomed edit to the managed .gitignore. Part of #1096.
Activity
build(devkit): adopt devkit 1.2.0 and declare the v tag scheme (#76)
c-vigo commentedon Jul 15, 2026
Scope note (from #1096 triage): the durable consumer-owned root ignore slot introduced here should also resolve the self-contradiction at
assets/workspace/flake.nix:68, which currently instructs the flake-hooks opt-in consumer to add.pre-commit-config.yamlto the managed root.gitignore— an edit the next upgrade destroys. Redirect that instruction to the new durable slot (or seed the ignore automatically) as part of this fix.fix(init-workspace): durable consumer seam for repo-root ignores (#1100)
fix(init-workspace): warn on scaffold/flake-pin version skew (#1101)
fix(workspace): preserve .pymarkdown / .yamllint lint configs on upgr…
c-vigo commentedon Jul 15, 2026
Fixed by #1100 (merged to
dev, commit9a3aa179; ships in the next release). Shipped: a preserved, consumer-owned.gitignore.project(mirroringjustfile.project) whose contentsinit-workspace.shappends to the regenerated root.gitignoreon every upgrade — the durable committed home for repo-root ignores; the flake-hooks/nix/store-symlink.pre-commit-config.yamlignore is now auto-seeded (gated on the symlink, so a hand-managed file is untouched); the Node fragment ignoresdist/src/byproducts while keeping the committed bundle tracked; andflake.nixno longer instructs the doomed edit to the managed.gitignore. Part of #1096.chore: release 1.2.1 (#260)
chore: release 1.2.1 (#1109)
fix(init-workspace): preserve dangling store pre-commit symlink
fix(init-workspace): preserve dangling store pre-commit symlink (#1124)
fix(init-workspace): migrate hand-added root gitignore lines into .gi…
ci(actions): update github-actions (minor and patch) (#1134)
chore: release 1.3.0 (#265)
chore: release 1.3.0 (#1138)
fix(workspace): never migrate scaffold-committed or template gitignor…
ci(actions): update github-actions (minor and patch) (#98)
fix(workspace): never deploy template pre-commit YAML over flake-gene…
ci(deps): bump the actions-minor-patch group across 1 directory with …