Skip to content

Make the release script's own gate pass again - #14

Merged
stoatworks-labs merged 1 commit into
mainfrom
worktree-local-build
Sep 3, 2026
Merged

Make the release script's own gate pass again#14
stoatworks-labs merged 1 commit into
mainfrom
worktree-local-build

Conversation

@stoatworks-labs

Copy link
Copy Markdown
Owner

scripts/release-local.sh runs cargo clippy --release --all-targets -- -D warnings before it builds anything, and that gate has been failing since the glam 0.33 bump — so there was no way to build a local .app at all.

  • glam 0.33 deprecated Mat4::look_at_rh and Mat4::perspective_rh. 0.33 offers one perspective per clip space, all right-handed: vulkan is wgpu's depth range with Y down, opengl puts Z in -1..1, and only directx is Z in 0..1 with Y up — what wgpu, and so Metal here, actually wants. Pick either of the others and the stage still renders: upside down, or clipped at half its depth. The new matrices were checked equal to the old ones before the deprecated calls went, and a new test pins the clip space directly rather than trusting the module name.
  • chunks_exact_to_as_chunks in unmapper-render — applied with cargo clippy --fix.
  • The About window is vendored from stoatworks-backend and its header says to edit it there, so its one nit is silenced at the mod rather than fixed in a copy. Worth fixing upstream and re-syncing.

cargo clippy --all-targets is now clean and all tests pass.

🤖 Generated with Claude Code

`scripts/release-local.sh` runs `cargo clippy --release --all-targets -D
warnings` before it builds anything, and that gate has been failing: the glam
0.33 bump deprecated `Mat4::look_at_rh` and `Mat4::perspective_rh`, and clippy
learned `chunks_exact_to_as_chunks`. Neither is a bug, and together they meant
there was no way to build a local .app at all.

The glam replacement needs saying out loud. 0.33 offers one perspective per
clip space, named after the API that popularised each, and all three are
right-handed: `vulkan` has wgpu's depth range with Y *down*, `opengl` puts Z in
-1..1, and only `directx` is Z in 0..1 with Y up — what wgpu, and so Metal
here, actually wants. Pick either of the others and the stage still renders,
upside down or clipped at half its depth. The new matrices were checked equal
to the old ones before the deprecated calls went, and a test now pins the clip
space directly rather than trusting the module name.

The About window is vendored from stoatworks-backend and says so in its header,
so its one clippy nit is silenced at the `mod` instead of edited in a copy.
Worth fixing upstream and re-syncing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@stoatworks-labs
stoatworks-labs merged commit a12d6fe into main Sep 3, 2026
1 check passed
@stoatworks-labs
stoatworks-labs deleted the worktree-local-build branch September 3, 2026 23:12
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.

1 participant