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

Only touch the fsproj when things actually changed #83

Open
forki opened this issue Mar 13, 2018 · 7 comments
Open

Only touch the fsproj when things actually changed #83

forki opened this issue Mar 13, 2018 · 7 comments

Comments

@forki
Copy link
Member

forki commented Mar 13, 2018

image

we should only overwrite the file if the content changed

@dpraimeyuu
Copy link
Contributor

Hi @forki :-)

I am newcomer to F# OSS and I would like to help. As I understood, this issue is about saving current fsproj file if any file ordering was applied, am I correct? If so, can this be detected purely using content of fsproj?

@forki
Copy link
Member Author

forki commented Mar 13, 2018

yes exactly. I paket we basically load the file into memory and compare with string that would write to disk. If the strings are equal then we skip the writing

@dpraimeyuu
Copy link
Contributor

Doesn't seem scary though. I will try to do setup this evening

@dpraimeyuu
Copy link
Contributor

@forki

image

I suppose here (before invoking save fn) the actual checking should be placed, correct?

@forki
Copy link
Member Author

forki commented Mar 15, 2018 via email

@dpraimeyuu
Copy link
Contributor

Then save fn would do two things: check if save is necessary and true saving. I would place it in mentioned updateProjectFile.

@forki
Copy link
Member Author

forki commented Mar 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants