-
Notifications
You must be signed in to change notification settings - Fork 445
GitInstaller should prefer local resources before downloading #590
Conversation
gitArchiveFilePath = AssemblyResources.ToFile(ResourceType.Platform, "git.zip", archiveParentPath, environment); | ||
if (!gitArchiveFilePath.FileExists()) | ||
{ | ||
gitArchiveFilePath = null; |
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.
Should this file exists check be moved into AssemblyResources.ToFile(...)
?
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.
I also was not sure if the usage of AssemblyResources.ToFile(...)
be used here inside GitInstaller
or the result sent into the constructor.
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.
I also was not sure if the usage of AssemblyResources.ToFile(...) be used here inside GitInstaller or the result sent into the constructor.
Now that I say that out loud I feel the like call should be outside GitInstaller
...
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.
Yeah, I agree it probably should be outside, this should only be concerned with extracting a zip given a file path.
d7066db
to
ec4038c
Compare
} | ||
|
||
var gitLfsArchivePath = AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip", archiveParentPath, Environment); | ||
if (!gitLfsArchivePath.FileExists()) |
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 feels a bit better.. Maybe a static method in GitInstaller
would be better than this...
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.
Ehh...
This has been manually ported to #609 |
GitInstaller
to check locally for git and git lfs zip filesGitInstaller
will download the respective files