Skip to content

chore(build): stop prettier-formatting tauri-plugin-display-awareness's generated permission files#96

Merged
ScottMorris merged 1 commit into
mainfrom
chore/ignore-display-awareness-codegen-drift
Jun 24, 2026
Merged

chore(build): stop prettier-formatting tauri-plugin-display-awareness's generated permission files#96
ScottMorris merged 1 commit into
mainfrom
chore/ignore-display-awareness-codegen-drift

Conversation

@ScottMorris

Copy link
Copy Markdown
Contributor

Summary

  • cargo build regenerates tauri-plugin-display-awareness's permissions/autogenerated/reference.md and permissions/schemas/schema.json in schemars' raw (non-prettier) style, but the committed versions were prettier-formatted — every build produced a pure-whitespace diff that had to be hand-reformatted and recommitted. tauri-plugin-spindle-project already solved this exact problem via .prettierignore; this just extends the same fix to tauri-plugin-display-awareness
  • Added the equivalent .prettierignore entries and committed the current raw codegen output as the new baseline, verified stable across repeated cargo build runs
  • No functional change — diff is pure whitespace/indentation

Test plan

  • cargo build -p tauri-plugin-display-awareness twice in a row — no further drift
  • cargo test -p tauri-plugin-display-awareness (9 passed)
  • pnpm exec prettier --check . (clean)
  • pnpm vitest run (228 passed, unaffected)

…'s generated permission files

`cargo build` regenerates `permissions/autogenerated/reference.md` and
`permissions/schemas/schema.json` from the plugin's command
definitions, writing them in schemars' raw (non-prettier) style. Since
the committed versions were prettier-formatted, every `cargo build`
produced a pure-whitespace diff that had to be re-formatted and
re-committed by hand — the same drift already solved for
`tauri-plugin-spindle-project` via `.prettierignore`, just never
extended to this plugin.

- Added the equivalent `.prettierignore` entries for
  `tauri-plugin-display-awareness`'s autogenerated/schemas directories.
- Committed the current raw codegen output as the new baseline so
  future `cargo build` runs produce zero diff (verified by building
  twice in a row with no further changes).

No functional change — diff is pure whitespace/indentation, confirmed
by inspection.

Verified via:
- `cargo build -p tauri-plugin-display-awareness` twice in a row (no
  further drift)
- `cargo test -p tauri-plugin-display-awareness` (9 passed)
- `pnpm exec prettier --check .` (clean — no longer flags these files)
- `pnpm vitest run` (228 passed, unaffected)
@ScottMorris ScottMorris added chore Maintenance and housekeeping build-pipeline Authoring, encoding, packaging, and export pipeline work labels Jun 24, 2026
@ScottMorris

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions

Copy link
Copy Markdown

Spindle JS tests

228 tests  ±0   228 ✅ ±0   6s ⏱️ +3s
 24 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit cc637c1. ± Comparison against base commit 0b6f8a4.

@github-actions

Copy link
Copy Markdown

Spindle Rust tests

214 tests  ±0   214 ✅ ±0   2s ⏱️ ±0s
  2 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit cc637c1. ± Comparison against base commit 0b6f8a4.

@ScottMorris ScottMorris merged commit 35c4f5c into main Jun 24, 2026
8 checks passed
@ScottMorris ScottMorris deleted the chore/ignore-display-awareness-codegen-drift branch June 24, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-pipeline Authoring, encoding, packaging, and export pipeline work chore Maintenance and housekeeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant