Skip to content

[BUG] #1092 seam: upgrade drops prior hand-added root ignores instead of migrating them into the empty-seeded .gitignore.project #1111

Closed

Description

@c-vigo

Summary

Follow-up from 1.2.1-rc1 verification (not fixed in the 1.2.1 train). Relates to #1092 (durable committed home for repo-root ignores via .gitignore.project).

Problem

The #1092 fix gives consumers a durable, preserved .gitignore.project whose contents init-workspace.sh appends to the regenerated root .gitignore. But on the upgrade that introduces .gitignore.project, it is seeded empty. Any root ignores a consumer had previously hand-added directly to the managed root .gitignore (which the upgrade regenerates from scratch) are silently dropped — they are not migrated into the newly-seeded .gitignore.project.

The flake-hooks store-symlink case for .pre-commit-config.yaml is handled separately (auto-seeded conditionally, #1092 Fixed). This is about the general class: .DS_Store, editor/OS cruft, project-specific paths, etc. that a consumer added by hand.

Suggested fix

Either:

  • Auto-migrate previously-present, consumer-added lines from the old root .gitignore into .gitignore.project on the upgrade that introduces it; or
  • At minimum, print an upgrade-output note listing the root-.gitignore lines being dropped, so the consumer can move them into .gitignore.project themselves.

SemVer

Patch — data-preservation fix.

Activity

  1. added
    bug
    priority:low
    area:workspace
    effort:medium
    semver:patch
    on Jul 15, 2026
  2. self-assigned this
    on Jul 15, 2026
  3. c-vigo commented on Jul 15, 2026

    @c-vigo
    ContributorAuthor

    Fixed by #1129 (merged into dev). Consumer hand-added root .gitignore entries are now auto-migrated append-only into .gitignore.project before the render — deduplicated against managed sources and existing entries, idempotent across upgrades, with an upgrade note listing what moved. Ships with the next patch release.

  4. added a commit that references this issue on Jul 15, 2026
    1ecb871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workspacebugeffort:mediumpriority:lowsemver:patch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions