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

fix(windows) bump git-lfs to 3.4.0 and fix its installation #503

Merged
merged 15 commits into from
Sep 14, 2023

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Sep 13, 2023

This PR fixes the git: 'lfs' is not a git command. error noticed in #502 (comment) when using the version 3.4.0 of git-lfs by adding git to the PATH earlier then using git-lfs.exe installer instead of git.exe lfs install.

It also adds a test ensuring git-lfs (and thus git) is correctly installed.

Supersedes and closes #502

Testing done

https://ci.jenkins.io/job/Packaging/job/docker-agent/job/PR-503/11/

Submitter checklist

Preview Give feedback

@lemeurherve lemeurherve changed the title wip: set PATH before installing git-lfs version 3.4.0 wip: fix git-lfs version 3.4.0 installation Sep 13, 2023
@lemeurherve lemeurherve changed the title wip: fix git-lfs version 3.4.0 installation wip: fix git-lfs version 3.4.0 installation on Nanoserver images Sep 13, 2023
@lemeurherve lemeurherve changed the title wip: fix git-lfs version 3.4.0 installation on Nanoserver images fix: git-lfs version 3.4.0 installation on Nanoserver images Sep 13, 2023
@lemeurherve
Copy link
Member Author

Updatecli is failing as expected since the test target doesn't exist on the master branch yet.

@lemeurherve lemeurherve marked this pull request as ready for review September 13, 2023 16:17
@lemeurherve lemeurherve requested a review from a team as a code owner September 13, 2023 16:17
@lemeurherve lemeurherve changed the title fix: git-lfs version 3.4.0 installation on Nanoserver images fix: bump git-lfs to 3.4.0 and fix its installation on Nanoserver images Sep 13, 2023
@lemeurherve lemeurherve marked this pull request as draft September 13, 2023 16:32
@lemeurherve
Copy link
Member Author

Back to draft, the windowsservercore git-lfs install doesn't fail but the test show that it's not installed.

I'll do the same change on windowsservercore image.

@lemeurherve lemeurherve changed the title fix: bump git-lfs to 3.4.0 and fix its installation on Nanoserver images fix: bump git-lfs to 3.4.0 and fix its installation on Windows images Sep 13, 2023
@lemeurherve lemeurherve marked this pull request as ready for review September 13, 2023 17:45
@lemeurherve
Copy link
Member Author

lemeurherve commented Sep 13, 2023

Same change applied to windowsservercore image.

Out of curiosity I opened #504 to check if git-lfs 3.1.4 was indeed installed in Windows images, it was, PR closed in favor of this one.

PR ready for review.

@dduportal dduportal changed the title fix: bump git-lfs to 3.4.0 and fix its installation on Windows images fix(windows) bump git-lfs to 3.4.0 and fix its installation Sep 14, 2023
Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dduportal
Copy link
Contributor

Merging as the updatecli checks are failing until merged.

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

Successfully merging this pull request may close these issues.

3 participants