Re: Impossible to push my ports directory to my CI/CD pipeline
Date: Thu, 03 Oct 2024 05:17:18 UTC
Am 01.10.2024 um 22:37 schrieb Brooks Davis: > I've done some searching at it looks like there are gitlab options to > disable the various checks. I don't admin any gitlab instances so don't > know how to translate this into something you can use, but: > > https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/checks/lfs_check.rb?ref_type=heads > > seems to show an lfs_check.objects_missing knob to disable the precommit > check. You might also need to disable some lfs integrity checks. at least in gitlab it is possible to disable LFS feature per repository. It can be found in the repository under: Settings -> General -> Visibility, project features, permissions -> Repository -> Git Large File Storage (LFS) After I disabled this and saved the changes I was able again to push into my gitlab and all my pipelines are working again. So at least for gitlab I can confirm it is working, maybe other tooling will continue to have problems. Just reverting a commit does not change the history and the history reference these LFS objects which do not exist. I can imagine that other projects, using FreeBSD ports, will maybe see a similar problem. If a rewrite of the ports repository is an option should be decided by the git team, but I think that is the only clean way to get LFS objects out of the repository. I would squash the two commits (the one that added the LFS object and the one that removed it again) into a single commit, like an interactive rebase can do this. But as that will rewrite the complete history from this point on it is maybe not an option. Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook