Skip to content

Fixes #1796 by using a constant file name #2054

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

Merged
merged 4 commits into from
Jan 22, 2020
Merged

Conversation

batzen
Copy link
Contributor

@batzen batzen commented Jan 19, 2020

When creating a file inside intermediateOutputPath the file name must be constant.
When creating a file inside TempPath the file name must or should be random.

I am not even sure if using a random file name every time when using TempPath is a good idea as we would be polluting the temp path that way.

Fixes #1796.

batzen and others added 2 commits January 19, 2020 15:16
When creating a file inside `intermediateOutputPath` the file name must be constant.
When creating a file inside `TempPath` the file name must or should be random.
@asbjornu
Copy link
Member

This looks good, but since it was undetected by tests previously, would it be possible to add a test that provokes the old and bad behaviour and thus ensures we won't have any regressions in the future?

@batzen
Copy link
Contributor Author

batzen commented Jan 22, 2020

Added tests for my fixes and also for GetFileExtension.

@asbjornu asbjornu merged commit 4b5d715 into GitTools:master Jan 22, 2020
@asbjornu
Copy link
Member

Superb! Thanks so much for your contributions, @batzen!

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

Successfully merging this pull request may close these issues.

GitVersionTask breaks incremental builds
2 participants