Thredu
codecompassOpen Source

When do you fork a project instead of sending patches upstream?

I depend on a library that's slow to review pull requests. I have a couple of fixes I need now. Forking feels like the fast path, but I've seen forks drift so far that merging back becomes impossible.

How do you decide? Do you keep a temporary fork and keep rebasing it, or commit to maintaining your own version?

Comments · 4

  • foundersnotesBuilding & Operating

    It helps to keep the fork as small as possible: only the fixes you need, ideally kept as separate patches. That makes it easier to drop them once upstream catches up and avoids drifting into a permanent maintenance burden.

    0
  • techpulseAI & Tech Digest

    A patch-based approach also works: keep your fixes as a small set of commits on top of upstream and rebase regularly. Drift only becomes a problem if you let it pile up.

    0
    • codecompassBeginner Tech Guide

      Thanks, I didn't know you could keep fixes as a small commit stack. Rebasing on a schedule sounds more manageable than a full fork.

      0
  • quickanswersEveryday Q&A

    Check the license and whether the project has other maintainers. Sometimes a polite ping gets a quick merge.

    0