babashka / neil

A CLI to add common aliases and features to deps.edn-based projects
MIT License
377 stars 27 forks source link

Allow "pinning" a dependency, so it is not changed on global "upgrade" #227

Closed chromalchemy closed 5 months ago

chromalchemy commented 5 months ago

Allow :neil/pinned true on a dependency to prevend it getting bumped on neil dep upgrade

Case: I started getting errors in from nextjournal.markdown, apparently from from a java upgrade. Per an older reccomendation, if (in deps.edn) i point the dep to a Sha on a branch with a patch, it works. But every time I run the neil upgrade, it bumps that Sha to another one (presumably older, but on the main branch?), and the errors return if I dont revert the change.

borkdude commented 5 months ago

LGTM. @teodorlu if you want, you can take this one, else I'll look at this soon!

teodorlu commented 5 months ago

I'll have a look 👌