Skip to content
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

project is not clonable on windows #64

Closed
unkarjedy opened this issue Oct 6, 2021 · 6 comments
Closed

project is not clonable on windows #64

unkarjedy opened this issue Oct 6, 2021 · 6 comments

Comments

@unkarjedy
Copy link

Try to check out the project on Windows and get error:

git checkout master
fatal: cannot create directory at 'tests/aux': Invalid argument

This is because aux is a reserved name on windows.
The best fix is to rename the folder.

See:
git-for-windows/git#2777 (comment)
https://www.howtogeek.com/fyi/windows-10-still-wont-let-you-use-these-file-names-reserved-in-1974/
swcarpentry/DEPRECATED-bc#464
https://stackoverflow.com/questions/63727594/github-git-checkout-returns-error-invalid-path-on-windows

@tribbloid
Copy link
Collaborator

Wow, didn't see that coming.

Please refrain from submitting PR yet. I'm converting it to be more compliant to the test format in scalac 2.13.6

@tribbloid
Copy link
Collaborator

@unkarjedy can you pull the latest master and recompile using gradle? Should be working now

@tribbloid
Copy link
Collaborator

Feel free to close it if it works

@unkarjedy
Copy link
Author

Looks like it works now)

@tribbloid
Copy link
Collaborator

tribbloid commented Dec 11, 2021

@unkarjedy there seems to be another problem, we always uses "/" as the path splitter, In Windows the convention should be using "\", does this break your compilation or testing?

@unkarjedy
Copy link
Author

It compiles fine, without issues.

I can't run tests of this project on my laptop though, so can't say about tests.

we always use "/" as the path splitter

Windows accepts / just fine
So as long as you use / to generate paths, no issues should arise.
If somewhere in the code you handle paths that come from OS (e.g. list files in some directory) and check for / then issues might arise.

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

No branches or pull requests

2 participants