-
Notifications
You must be signed in to change notification settings - Fork 651
Feature/task disk cache #737
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
Feature/task disk cache #737
Conversation
Cache entries are placed in .git\gitversion_cache\ directory.
…ke testing easier.
… to make testing easier.
…us and quite possibly enjoyable task.
…ersion cache file.
… it's easier and more consistent to exclude properties that aren't version variables.
…e` property and make use of it in `VersionAndBranchFinderLoadVersionVariablesFromDiskCache()`.
…ernal and internals visible to GitVersionTask.Tests so we can reset the in-memory cache for testing. Not very elegant, but that's `static` for you. :-/
…m work, since AppVeyor don't seem to agree with local test running in that everything is green. Not trying to fake it may be a better solution anyhow. Ref https://ci.appveyor.com/project/GitTools/gitversion/build/3.3.1-PullRequest.711+28%20(Build%20458)
…ith `Repository.Discover()`.
…rs in `SetLoggers()`.
…teCore` and replaced all usage of the former with the latter. Also made `ExecuteCore` non-static.
a2e3ddf
to
d7a6402
Compare
- No more in memory cache - Pulled all caching code out to it's own class - Only open repo once - Moved open repo into execute core
@asbjornu I have rebased, made some further refactorings/cleanups and got the build green :) Nice change, I ended up removing the in memory cache. Would love a follow up review just to make sure I have not messed something up. |
Superseeds #711 |
Gonna merge this now @asbjornu, if you see issues, lets fix them in another PR |
@JakeGinnivan Thanks! I don't notice anything, but if I do, I'll make another PR. Glad to finally see this merged. It will speed up our builds considerably. :) |
I haven't got the release together yet, will do soon |
@JakeGinnivan No rush. Looking forward to trying it out. :) |
No description provided.