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: do not depend on git-lfs being installed during git clone #130

Closed
wants to merge 1 commit into from

Conversation

doudou
Copy link
Member

@doudou doudou commented Sep 8, 2024

The current git-lfs integration runs git lfs pull after the normal git operations. We therefore setup the git repositories to essentially do nothing on clone/fetch/pull/...

However, the way this is done so far is by using the --skip options to git-lfs ... which relies on git-lfs itself. This is a problem on platforms where installing git-lfs is an issue.

Use pass-through filters that do not rely on git-lfs during cloning instead. The "real" setup is done after the import anyways.

The current git-lfs integration runs `git lfs pull` after the normal
git operations. We therefore setup the git repositories to essentially
do nothing on clone/fetch/pull/...

However, the way this is done so far is by using the `--skip` options
to git-lfs ... which relies on git-lfs itself. This is a problem
on platforms where installing git-lfs is an issue.

Use pass-through filters that do not rely on git-lfs during cloning
instead. The "real" setup is done after the import anyways.
@g-arjones
Copy link
Contributor

Could you please provide more context? I currently see a warning when git-lfs is not installed:

  WARN: sonar_processing uses git LFS but it is not installed, files may be missing from checkout

@doudou
Copy link
Member Author

doudou commented Sep 9, 2024

Could you please provide more context? I currently see a warning when git-lfs is not installed:

  WARN: sonar_processing uses git LFS but it is not installed, files may be missing from checkout

Mmmmm

I'll have to test things out again. Didn't write the detail.

In the current setup, we want to be able to disable some packages and not other. For this to work we had to define the clean and process filters during clone. And then we get failures if during clone if git-lfs is not installed.

Maybe what would have been the right fix, is to not define them if one does not want to install LFS at all.

@g-arjones
Copy link
Contributor

Maybe what would have been the right fix, is to not define them if one does not want to install LFS at all.

Yeah, my thoughts exactly.

@doudou
Copy link
Member Author

doudou commented Sep 12, 2024

Did manage the other way, but I think there is still a bug related to enabling or disabling of packages.

Just got very low priority for us, I'll close the PR but keep the branch.

@doudou doudou closed this Sep 12, 2024
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