I was able to get it working by going into the ebuild git repo and doing “git lfs install”
Reading that link seems to imply once it’s turned on it should work using regular commands.
It didn’t seem to so I did a “git lfs pull” and then the file changed from the reference to the actual one.
I don’t suppose it would be possible to support this from within Fire ?
I have a git repo with all my import projects and the associated framework files. Im using remote references for this. It seemed to me like a great idea to share import projects between ios apps but I didnt realize that git has a 100mb file limit and one of the files in the latest realm framework is greater than this.
Sure. I’m not very familiar with LFS support int git. is it safe to just always do a “git lfs pull” (even if its not installed), or else, is there a clean way to find if its necessary?
however, git ofd install does not seem to be a valid command; I assume I’d need to install this https://git-lfs.github.com first? I’m hesitant to do this right now, as I understand it could potentially affect all git repros (also, it uses brew, which isn’t supported on Apple Silicon yet)…
What I can do is implement the following changes “blind”, assuming you can confirm the exact commands/folders:
after checkout, if ./git/lfs exists as a folder on disk, I will run git lfs pull after each regular pull.
With the, I assume an initial build (ie a clean checkout) would still fail the first time, until there user activates LFS for the repo manually (no way to detect that automatically, really?), but once it’s done, subsequent builds should pull correctly.
git: Updating files: 100% (2795/2795), done.
git: Already on ‘master’
git: Your branch is up to date with ‘origin/master’.
git: WARNING: error running /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git ‘config’ ‘–global’ ‘–replace-all’ ‘filter.lfs.clean’ ‘git-lfs clean – %f’: ‘fatal: $HOME not set’ ‘exit status 128’
git: Run git lfs install --force to reset git config.
E: There was a problem obtaining remote project ‘github.com/mosh/ImportSolution/Realm.elements:*’ referenced from ‘RealmiOSApplication’.
Previously I deleted the folder and did a build. I then went into the folder and did a git lfs install, followed by a git lfs pull. After that a build would be successful.
Are you running any lfs commands before the lfs install ?
if lFolder.FolderExists then begin
if Path.Combine(lFolder, ".git").FolderExists then begin
aContext.Logger.LogDetail($"Pulling {aUrl} to {lFolder}");
if not RunGit(aContext, ["checkout", aBranch], lFolder) then exit false;
if not RunGit(aContext, ["pull"], lFolder) then begin
aContext.Logger.Warning("Pull for git repository {0} failed.", aUrl);
if aForcePull then
exit false;
end;
if aLFS then
if not RunGit(aContext, ["lfs", "pull"], lFolder) then exit false;
end
else begin
aContext.Logger.Error($"Folder '{lFolder}' already exists, but is not a git repository.");
exit false;
end;
end
else begin
aContext.Logger.LogDetail($"Cloning {aUrl} to {lFolder}");
if not RunGit(aContext, ["clone", aUrl, lFolder]) then exit false;
if not RunGit(aContext, ["checkout", aBranch], lFolder) then exit false;
if aLFS then begin
if not RunGit(aContext, ["lfs", "install", "--force"], lFolder) then exit false; // --force added now
if not RunGit(aContext, ["lfs", "pull"], lFolder) then exit false;
end;
end;