Skip to content

fix: restore ModelSetupCoordinator.swift and anchor the Models/ gitignore rule#40

Open
hiimdec wants to merge 1 commit into
johnbean393:mainfrom
hiimdec:fix/restore-model-setup-coordinator
Open

fix: restore ModelSetupCoordinator.swift and anchor the Models/ gitignore rule#40
hiimdec wants to merge 1 commit into
johnbean393:mainfrom
hiimdec:fix/restore-model-setup-coordinator

Conversation

@hiimdec

@hiimdec hiimdec commented Jul 10, 2026

Copy link
Copy Markdown

Fixes #38.

main does not build from a fresh clone: project.pbxproj references KeyType/Logic/Models/ModelSetupCoordinator.swift, but the unanchored Models/ rule in .gitignore (meant for model weights) also matches the KeyType/Logic/Models/ source directory, so the directory refactor in 5214b77 recorded the move as a pure deletion and the file was never re-added.

This PR:

  • restores ModelSetupCoordinator.swift verbatim from 5214b77^ (the last committed version) at the path the project expects;
  • anchors the ignore rule to the repo root (/Models/, with a comment) so an ignored directory name can't swallow source files again.

Verified on a clean checkout of main (04db9a2), macOS 26.5.1 / Xcode 26.6: without this change the build fails with

error: Build input file cannot be found: '<clone>/KeyType/Logic/Models/ModelSetupCoordinator.swift'. (in target 'KeyType' from project 'KeyType')

and with it the same invocation ends in BUILD SUCCEEDED.

Heads-up: if the untracked copy of this file in your working tree has evolved since 5214b77, prefer committing your version on top of this — once the gitignore rule is anchored, git status will show it.

🤖 Generated with Claude Code

…nore

Commit 5214b77 ("chore: Refactor directories") moved the file into
KeyType/Logic/Models/, but .gitignore's bare "Models/" pattern (intended for
model-weights directories) matches ANY directory named Models at any depth —
so git silently dropped the file from the move commit and every fresh clone
fails to build, while it survives untracked in the author's working copy.

- Anchor the pattern to the repo root (/Models/); *.gguf still catches strays.
- Restore the file verbatim from 5214b77^ at the path project.pbxproj expects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fresh clones fail to build: ModelSetupCoordinator.swift is missing from the repo (swallowed by unanchored "Models/" gitignore rule)

1 participant