-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
osx/macos hidden files #649
Comments
Interesting behaviour, I wasn't aware this could happen. One option for fpm would be to generally ignore all hidden files, the recursive listing of files currently discovers all files ending in |
"I think we can safely assume that projects hiding their source files don't want to compile those, right?", indeed, I was expected that. |
The source part of a project are collected with Line 379 in 2ae0581
which currently picks up all files. Having it skip hidden files and directories would solve this issue. Alternatively, we can adapt the filter step here. Lines 84 to 87 in 2ae0581
We should transform the list of source files to their basename and than exclude all hidden files with leading zeros. However, this might be insufficient and still include a hidden directory, i.e. we have to check the canonical path for a pathseparator followed by a dot. |
I'd like to give this issue a try, if it is still free to be assigned. |
@noisegul sure, feel free to send a patch for this issue. Let us know if you are stuck or need help at any point. |
Will do, thanks. |
@awvwgk Alright, opened a PR. |
Description
Recently, I've sent a fpm project as a tar file to students. One of them open it with a mac and some hidden files, ._xxx.f90, were created.
Then, "fpm build" fails because fpm try to compile the ._xxx.f90 files.
Of course removing the hidden files solves the problem.
Expected Behaviour
Build the executable without removing the hidden files.
Version of fpm
0.40 (osx) and 0.5.0 (linux)
Platform and Architecture
MacOS, linux
Additional Information
No response
The text was updated successfully, but these errors were encountered: