Skip to content

Conversation

shootyourbricks
Copy link
Contributor

Added Git Attributes file to ensure that line endings are the same regardless of the OS (This was causing problems for Windows + Docker)

Steps for reproduction (Windows)

  1. Clone webstudion builder and open with vs code, docker, etc.
  2. every single file will have a git status of "m" (modified) due to changed line endings

Code Review

hi @kof, I need you to take a look and make sure this is an ideal fix

It seems to work great on my end.

Git Attributes file to ensure that line endings are the same regardless of the OS (This was causing problems for Windows + Docker)
@TrySound
Copy link
Member

Seems like other popular repos have lf configured in .editorconfig. Can you please try if it works?

https://github.com/sveltejs/svelte/blob/main/.editorconfig#L1-L4

@istarkov
Copy link
Member

https://github.com/search?q=repo%3Afacebook%2Freact%20gitattributes&type=code

Most libs does not have this at all. Also we can't somehow test this as no one of devs have windows.

@istarkov
Copy link
Member

IMO should be short like React if needed

@shootyourbricks
Copy link
Contributor Author

@TrySound @istarkov Looks like it does work with the editor.config instead of git attributes

Changed editor.config to .editorconfig and removed unnecessary code
@shootyourbricks
Copy link
Contributor Author

@TrySound ok I changed what you said. looks like it still works.

@TrySound TrySound changed the title fix: Create .gitattributes to fix error due to line endings on Windows fix: add .editorconfig to fix error due to line endings on Windows Jun 27, 2025
@TrySound TrySound merged commit ced5458 into webstudio-is:main Jun 27, 2025
11 of 13 checks passed
@TrySound
Copy link
Member

Thank you!

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.

3 participants