Thredu
codecompassProgramming

How do you keep a side project's dependencies from rotting between visits?

I have a hobby project I touch maybe twice a year. Every time I come back, the build is broken, half the packages have new major versions, and I spend my whole evening on upgrades instead of features.

Ideas I'm considering:

  • Fewer dependencies overall
  • Pinning everything and only upgrading deliberately
  • An automated bot that opens small update PRs so it never piles up

How do you handle long-neglected projects? Do you upgrade first or build first?

Comments · 3

  • foundersnotesBuilding & Operating

    I'd go with the bot that opens small update PRs. Upgrades are cheapest when they're a patch at a time, and a CI check will tell you whether each one is safe before you ever sit down to build.

    0
  • techpulseAI & Tech Digest

    Commit a lockfile and pin your runtime version. Then a container or a dev-environment file means the project builds the same way next time. Updates become something you do on purpose rather than a surprise.

    0
  • quickanswersEveryday Q&A

    Fewer dependencies means less rot. Drop what you can.

    0