Coder Social home page Coder Social logo

Remove git-lfs? about fluentdarkmodekit HOT 12 CLOSED

microsoft avatar microsoft commented on May 18, 2024
Remove git-lfs?

from fluentdarkmodekit.

Comments (12)

li-bei avatar li-bei commented on May 18, 2024 3

It seems ResearchKit will ignore lfs files for clone and pull: https://github.com/ResearchKit/ResearchKit/blob/master/.lfsconfig

Looks like a nice solution.

from fluentdarkmodekit.

imWildCat avatar imWildCat commented on May 18, 2024 1

Can we refer to this image by dragging it into issues textarea then get the URL of this image?

from fluentdarkmodekit.

imWildCat avatar imWildCat commented on May 18, 2024 1

Another reference is that: ResearchKit does have git-lfs: https://github.com/researchkit/researchkit

from fluentdarkmodekit.

icodesign avatar icodesign commented on May 18, 2024

I would say this is more of an Apple issue. I encountered it a lot when using other packages as well. Even we removed this file, there's no guarantee that we wouldn't add another file and it's not a good idea to ask contributors to stop using Git LFS (the right thing).

If you're going to use SPM, you're gonna face this issue until Apple fix it. Otherwise, Carthage/CocoaPods are still options.

I tend not to fix from our side as long as we've provided enough information.

from fluentdarkmodekit.

levinli303 avatar levinli303 commented on May 18, 2024

Removing LFS might not be very viable, since it is already in the history. If there are devs who are trying to fetch an earlier version from Xcode, the same thing would still happen.

from fluentdarkmodekit.

icodesign avatar icodesign commented on May 18, 2024

TIL. That's decent.

from fluentdarkmodekit.

levinli303 avatar levinli303 commented on May 18, 2024

I created a branch with this commit, however the issue did not get resolved when I was using Xcode to fetch it as a swift package (specifying the branch name as exclude-lfs-on-clone).

The difference that creating .lfsconfig excluding files makes is that it will prevent lfs files being resolved, but git-lfs will still get called, I think due to .gitattribute.

There might not be a way to work around this on machines without git-lfs.

from fluentdarkmodekit.

li-bei avatar li-bei commented on May 18, 2024

@eyvallah I guess Xcode will clone all branches and check out to your specified branch, only one branch with .lfsconfig seems not enough.

from fluentdarkmodekit.

levinli303 avatar levinli303 commented on May 18, 2024

Now I'm having no issue with the spm inside latest Xcode now even without the symbolic link hack, lfs files were simply not resolved and that is ideal. But I'm not sure if it works for everyone now.

from fluentdarkmodekit.

icodesign avatar icodesign commented on May 18, 2024

I checked and still need the hack.
image

from fluentdarkmodekit.

icodesign avatar icodesign commented on May 18, 2024

The error above is because that the script Apple is using doesn't include /usr/local/bin in its path while git-lfs is put under that path for most of us.

I think we can skip it since it's not an issue of this repo.

image

from fluentdarkmodekit.

levinli303 avatar levinli303 commented on May 18, 2024

Let's close this for now.

from fluentdarkmodekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.