-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Only load the .fantomasignore file once, except for the daemon #2097
Conversation
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.
Hi again Patrick, thanks for this second attempt. It is a bit less impactful I think.
You are right that the functionality is somewhat breaking, but I think I changed it without much thought in 4.6
. I'm not sure anyone will really notice, to be honest.
(Got some yaks to shave here, sorry - FAKE's logic for finding reference assemblies is borked if your |
That one rings a bell actually, I got around a problem some time ago by setting |
That looks plausible as a workaround, thanks; I've submitted a fix for the underlying issue as fsprojects/FAKE#2662 |
(The bump to .NET 6 has fixed a bunch of the places where I needed to do strange things to get Fantomas building, but sadly it appears to have introduced some new ones :/ no problems with Fantomas, I think, but I've hit a number of bugs in FAKE.) |
I'm going to park working on this until dotnet/runtime#64266 is released (probably .NET 6.0.3) and FAKE starts working again on darwin-aarch64. |
Ok, no worries. I might take a look at this myself when I find some time. |
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.
This looks very good! A have a couple of concerns but nothing major.
Many thanks for picking this one up!
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.
Thank you!
Published as https://www.nuget.org/packages/fantomas-tool/4.7.5 |
…jects#2097) * Only load the .fantomasignore file once, except for the daemon * Update documentation * Also traverse upwards in default case * Make comment less confusing * Format * Fix logic to relativise to ignorefile location * Refactor to add unit tests * Fix relative path logic again * Move references to minimal locations * Update Documentation.md after re-adding search
A simpler attempt at #2086.
Note that this is a breaking change in behaviour; previously we would traverse the filesystem to find a
.fantomasignore
, and now we do not.