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

Azure doesn't respect .lfsconfig files #2503

Closed
tannergooding opened this issue Oct 11, 2019 · 2 comments
Closed

Azure doesn't respect .lfsconfig files #2503

tannergooding opened this issue Oct 11, 2019 · 2 comments

Comments

@tannergooding
Copy link
Member

Issue

Git LFS supports configuring an alternate lfsurl via the .lfsconfig file: https://github.com/git-lfs/git-lfs/wiki/Tutorial#lfs-url.

However, it appears as though Azure Pipelines ignores this file and instead force configures the lfsurl according to the LFS "default":

##[section]Starting: Checkout
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Syncing repository: terrafx/terrafx (GitHub)
Prepending Path environment variable with directory containing 'git.exe'.
##[command]git version
git version 2.21.0.windows.1
##[command]git lfs version
git-lfs/1.5.2 (GitHub; windows amd64; go 1.7.3; git 547a06aa)
##[command]git init "D:\a\1\s"
Initialized empty Git repository in D:/a/1/s/.git/
##[command]git remote add origin https://github.com/terrafx/terrafx
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/terrafx/terrafx.extraheader
##[command]git config --get-all http.proxy
##[command]git lfs install --local
Updated pre-push hook.
Git LFS initialized.
##[command]git config remote.origin.lfsurl https://github.com/terrafx/terrafx.git/info/lfs
##[command]git config remote.origin.lfspushurl https://github.com/terrafx/terrafx.git/info/lfs
##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/48/merge:refs/remotes/pull/48/merge

Expected Behavior

Azure Pipelines should respect the .lfsconfig file, if one exists, and use it for configuring the URL artifacts should be pulled from.

Build Link

The TerraFX repo is public and an example CI failure can be seen here: https://dev.azure.com/tagoo/terrafx/_build/results?buildId=332

@tannergooding
Copy link
Member Author

It's also worth noting that the git-lfs version on the Microsoft hosted Windows agents is incredibly outdated: git-lfs/1.5.2 (GitHub; windows amd64; go 1.7.3; git 547a06aa). The current version is 2.8.0 and is what both Linux and macOS agents are using.

@jtpetty
Copy link
Contributor

jtpetty commented Jan 28, 2020

This issue appears to be a duplicate of #2598. Closing this issue and tracking it there.

@jtpetty jtpetty closed this as completed Jan 28, 2020
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

No branches or pull requests

2 participants