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

Allow pulling git-lfs files in Azure CI #40

Merged
merged 2 commits into from
May 1, 2020

Conversation

StanczakDominik
Copy link
Contributor

@StanczakDominik StanczakDominik commented May 1, 2020

We ran into the issue of Azure not pulling git-lfs files during
PlasmaPy/PlasmaPy-NEI#21

As it turns out, adding lfs: true to the checkout step
as in this change:

PlasmaPy/PlasmaPy-NEI@d3360c3

allows Azure to easily grab them.

This change was guided by Azure docs over at
https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-files-from-lfs


I didn't see any easy way of overriding this setting downstream, and I currently see no disadvantages to putting it in upstream.

We ran into the issue of Azure not pulling git-lfs files during
PlasmaPy/PlasmaPy-NEI#21

As it turns out, adding `lfs: true` to the `checkout` step
as in this change:

PlasmaPy/PlasmaPy-NEI@d3360c3

allows Azure to pull LFS files.

This change was guided by Azure docs over at
https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#checkout-files-from-lfs
@Cadair
Copy link
Member

Cadair commented May 1, 2020

I assume this doesn't cause any issues for repos not using lfs?

@StanczakDominik
Copy link
Contributor Author

I expect so - I wouldn't see it breaking anything if LFS isn't used.

@Cadair Cadair merged commit c1634e3 into OpenAstronomy:master May 1, 2020
@Cadair
Copy link
Member

Cadair commented May 1, 2020

let's find out 😀

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

Successfully merging this pull request may close these issues.

2 participants