-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] Windows development fixes #3458
base: main
Are you sure you want to change the base?
[Fix] Windows development fixes #3458
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@@ -29,7 +30,7 @@ describe('Utilities - Rest', () => { | |||
expect(() => { | |||
unlinkFile(__dirname) | |||
}).toThrowError( | |||
`Couldn't remove ${workDir}/src/backend/wine/manager/downloader/__tests__/utilities!` | |||
`Couldn't remove ${workDir}${path.sep}src${path.sep}backend${path.sep}wine${path.sep}manager${path.sep}downloader${path.sep}__tests__${path.sep}utilities!` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use path.join
here like path.join(workDir, 'src', 'backend', ...)
instead interpolating path.sep
, it's easier to read and should take care of using the right separator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that is much more readable!
a7eddd3
to
a21c38f
Compare
unzipDir: installDir, | ||
onProgress: progress | ||
}) | ||
).resolves.toStrictEqual( | ||
`Succesfully unzip ${workDir}/src/backend/wine/manager/downloader/__tests__/utilities/../test_data/test.tar.xz to ${workDir}/src/backend/wine/manager/downloader/__tests__/utilities/test_unzip.` | ||
`Succesfully unzip ${path.join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this needed to fix the issue with the prettier as well?
seems unrelated.
Question: this supposed to fix the issue where when we try |
Prettier forces all files to have Unix (LF) line endings. When a Windows user has
core.autocrlf
set to true in their global.gitconfig
, commits use LF line endings but the files on disk use CRLF. This leads to spurious Prettier differences, causing the commit hook to fail.This overrides that global setting, using LF endings for text files on disk regardless of the
core.autocrlf
setting.It also fixes some tests that assumed Unix directory separators.
Use the following Checklist if you have changed something on the Backend or Frontend: