Add git lfs support to default build images

chris's Avatar

chris

26 Oct, 2015 02:43 PM

I have a project that uses git lfs (https://git-lfs.github.com/) to track larger binary files. Because of this, a standard git clone will not pull down all the files I need for a successful build. I also need to call git lfs pull, but am having some trouble getting that installed myself. Ideally we could have support for this on the base images...I'm currently using the Visual Studio 2015 image.

My current attempt at supporting this myself...in the Environment install ps script:

(new-object net.webclient).DownloadFile('https://github.com/github/git-lfs/releases/download/v1.0.0/git-lfs-windows-amd64-1.0.0.exe', 'git-lfs-windows-amd64-1.0.0.exe')
msiexec /i git-lfs-windows-amd64-1.0.0.exe /quiet /qn /norestart /log install.log

This does seem to work, but when I call the git lfs command on the pre-build ps script, it does not recognize the new command.

  1. Support Staff 1 Posted by Feodor Fitsner on 26 Oct, 2015 08:49 PM

    Feodor Fitsner's Avatar

    The installer is made with NSIS however it doesn't support /S (silent) switch, but it should. I'd consider that as a bug.

    I've added a new issue for this week update: https://github.com/appveyor/ci/issues/468

  2. 2 Posted by kyle on 28 Jan, 2016 03:25 PM

    kyle's Avatar

    Hi,

    I've just tried to use git-lfs with the Visual Studio 2015 environment, however the build fails complaining that the command git-lfs does not exist.

    Has support been enabled for all environments?

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Jan, 2016 04:19 PM

    Feodor Fitsner's Avatar

    Should be installed on all environments.  What exact command did you use to test it?

    -Feodor

  4. 4 Posted by kyle on 28 Jan, 2016 04:46 PM

    kyle's Avatar

    It was just what was executed as part of pulling down the repo.

    Also tried running git lfs pull as an init script, but just get an error saying that 'lfs' is not a git command.

    I've attached the logs for both scenarios (first one is anonymised).

  5. Support Staff 5 Posted by Feodor Fitsner on 28 Jan, 2016 05:06 PM

    Feodor Fitsner's Avatar

    Will take a look.

  6. 6 Posted by kyle on 01 Feb, 2016 09:23 AM

    kyle's Avatar

    Until this issue is resolved, I can't merge a feature branch that relies on git LFS.

    Have you been able to investigate the issue any further?

  7. Support Staff 7 Posted by Feodor Fitsner on 01 Feb, 2016 02:14 PM

    Feodor Fitsner's Avatar

    Hi Kyle,
    Git LFS has been deployed to default build image.

    -Feodor

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac