Keeping up dependencies up to date
Closed this issue · 2 comments
FunkyMuse commented
As tech moves forward, it's a smart idea to introduce renovate or dependabot to keep some dependencies up to date, sometimes even minor versions have important fixes.
panpf commented
I don't think I need it. There are two situations when a dependent library is upgraded:
- I don't need to modify the code, I just need to modify the version number. In this case, you can rely on the new version when using it
- I need to modify the code to adapt to new destructive changes. In this case, I need to upgrade the version number and modify the code to adapt. In this case, dependabot is meaningless
This is just my current idea. Welcome to further communication
FunkyMuse commented
Maybe a little more balanced approach:
- Use automation for minor/patch versions and security updates
- Handle major versions manually
The manual approach has some drawbacks:
- Risk of falling behind and abandonment of the library- easy to postpone updates indefinitely
- May miss critical security updates (although happens very rarely but still)
- Technical debt can accumulate
- More time-consuming when updates are finally done
- Requires manual tracking of dependency releases