babashka / neil

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

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

Closed chromalchemy closed 1 month ago

chromalchemy commented 1 month 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 1 month ago

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

teodorlu commented 1 month ago

I'll have a look 👌