Git for Windows converts text files to CRLF on checkout by default, so a fresh clone failed npm run --prefix tools/vendor check with Viewer.js drift. .gitattributes now marks the pinned Viewer.js, Toolkit and concept stylesheet files as never converted, and a test holds that for every tracked file under them. .gitattributes stays out of the Registry package. test_preview_writes_nothing_and_makes_no_requests expected the full settings path, which only holds when the temp folder is outside the home folder. On Windows %TEMP% is under the profile, so the review showed ~\... and the test failed. It now pins the home folder beside the temp root.
8 lines
357 B
Plaintext
8 lines
357 B
Plaintext
# Pinned files are compared byte for byte with their recorded hashes
|
|
# (npm run --prefix tools/vendor check). Git must never convert their line
|
|
# endings, which Git for Windows does by default (core.autocrlf=true, #636).
|
|
/web/lib/viewerjs/** -text
|
|
/web/js/shared/toolkit/** -text
|
|
/web/js/workspace/concept.css -text
|
|
/docs/concepts/workspace/style.css -text
|