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

Add an option to disable pulling Data from LFS #518

Open
Laguna1989 opened this issue Nov 9, 2023 · 1 comment
Open

Add an option to disable pulling Data from LFS #518

Laguna1989 opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Laguna1989
Copy link

Laguna1989 commented Nov 9, 2023

In my scenario there is a repository A which contains some test data stored in git lfs. In my project I pull repository A and want to use it as a dependency. I am not interested in running the tests from repository A.

Is it possible to get an option to disable pulling from git LFS in CPMAddPackage? This would allow to save bandwidth and time. Additionally configuring/building on machines with a slow internet connection would be way faster.

The files stored in normal git should still be pulled normally.

E.g. an argument could be added to CPMAddPackage:

CPMAddPackage(
        NAME repository_a
        GITHUB_REPOSITORY user/repository_a
        GIT_TAG master
        NO_LFS
        OPTIONS
        "NORMAL_FLAG ON"
)
@Laguna1989
Copy link
Author

If a tag/release is pulled, this can be achieved by pulling the source code *.zip from the release page. However if there is jut a tag (without a release) or if I want to get the latest main/master, the above suggestion would be needed.

@TheLartians TheLartians added the enhancement New feature or request label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants