Repository navigation
chore(desktop): stop tracking Tauri's generated gen/schemas - #63
Merged
Merged
Conversation
tauri_build::build() rewrites desktop/src-tauri/gen/schemas on every desktop build, and create-tauri-app's template ignores /gen/schemas. Nothing in the repo reads these files; they only feed editor completion for capability files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Decision: merge. Evidence: the PR body has the verification. A desktop source build on this branch recreated all four schema files byte-identical to the copies tracked on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The goal is to leave twoimo/alden with no open PRs or issues, each one resolved on its merits. PR #59 left one owner call open: whether
desktop/src-tauri/gen/schemas/*.jsonshould stay tracked. This PR settles it from Tauri's own guidance. People working on the desktop app stop seeing build-generated JSON churn ingit status, and a build on another OS cannot rewrite tracked files.Evidence
create-tauri-apptemplates/_base_/src-tauri/_gitignorecontains/gen/schemasunder "Generated by Tauri, will have schema files for capabilities auto-completion".$schemaat../gen/schemas/desktop-schema.jsonso the IDE can autocomplete it. This repo has no capability file that names it (git grep gen/schemasis empty), so the change touches no capability.Change
desktop/.gitignoregainssrc-tauri/gen/schemas/, and the four generated files are untracked (git rm --cached). No file content is lost, because the build writes the files again.Verification
In a clean worktree of this branch, with the four files deleted from disk:
npm ciandnpm run buildindesktop/pass.OPENKAKAO_TAURI_SOURCE_CHECK=1 cargo check --manifest-path desktop/src-tauri/Cargo.toml --lockedpasses and recreates all four files. Each one is byte-identical to the copy previously tracked onmain(cmp), andgit statusshows them as ignored.OPENKAKAO_TAURI_SOURCE_CHECK=1 cargo test --manifest-path desktop/src-tauri/Cargo.toml --locked: 86 passed.scripts/ordesktop/readsgen/.🤖 Generated with Claude Code