Repository navigation
Check text out with LF everywhere, so the include_str! tests pass on a Windows checkout (Fixes #158) - #217
Closed
kvnloo wants to merge 1 commit into
Closed
Check text out with LF everywhere, so the include_str! tests pass on a Windows checkout (Fixes #158)#217kvnloo wants to merge 1 commit into
kvnloo wants to merge 1 commit into
Conversation
…ows (Fixes meshy-dev#158) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Folded into #244 so these review together; closing this one. |
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.
Fixes #158
What changed
.gitattributes:* text=auto eol=lf, with the binary types in the repo (glb jpg mp4 spv tpg webp) markedbinary. Every text file is checked out with LF, whatevercore.autocrlfsays.renderer/src/gpu.rs,the_shaders_are_lf: no file inrenderer/shaders/has a CR in it. If a clone made before this change still has CRLF shaders, this test names the file and says how to check it out again. Without it you just get acontainsfailure somewhere else, like theray_aabbone inbvh::tests::the_walk_is_the_kernels_loop.Why
The repo had no
.gitattributes. Git for Windows defaults tocore.autocrlf=true, sopathtrace.wgsland the other files the tests read withinclude_str!were checked out with CRLF. The tests match multi-line spans joined with\n, so they failed. Fixing this at checkout covers everyinclude_str!source (the shaders,tests/render/lib.ts, the presets). Changing each test one by one wouldn't.Checks
git add --renormalize .changes nothing. Every text file in the index is already LF, so this PR rewrites no file contents.git check-attrshowseol: lfonpathtrace.wgslandbinaryon the images. Checkingpathtrace.wgslout with-c core.autocrlf=truegives 0 CRs.the_shaders_are_lf, run on its own with rustc against the shader files: it passes on the LF files and fails with its message once a CRLF line is appended to one of them. I couldn't run the fullcargo testhere because the environment can't fetch thedlss_wgpugit dependency.npm run typecheckandnpm testpass (199 passed, 1 skipped).No rendering change.
Drafted with AI assistance.
🤖 Generated with Claude Code