Open ELLIOTTCABLE opened 2 years ago
Which version of opam are you using? Have you tried with opam master? (see https://github.com/ocaml/opam/pull/5045)
Hm, that seems almost like β¦ the opposite of this?
Well, not quite, on second glance β but the important part here is definitely the semver-analysis, not the sorting out of recompilations or installations
Thinking about it again, it seems rather "easy to do" on top the current code. Essentially youβre just asking for the new upgrades <n> packages
section to be split into two:
upgrades <n> packages (major)
)upgrades <n> packages (minor/patch)
)Weβve talked about in the dev meeting and weβd be happy to review a PR for that if you have time to make one.
At the moment, the output of an
opam upgrade
can be somewhat overwhelming on a large project.When analyzing this before pressing
y
, I find myself overwhelmingly doing one thing: comparing version numbers.A computer is a lot more efficient, and less error-prone, at checking version numbers. :P
I propose that the summaries of actions-to-take (if larger than some threshold π) group their output first by lose semver assumptions, before display to the user:
To anticipate some feedback and agree with it β this feature is a footgun, if the OCaml ecosystem isn't reasonably careful as a whole about our semver. My recollection is of there being some pushback and 'who cares' about semver a few years ago, last time I read anything on this topic; but it does seem to have gained some additional support β and fwiw, @Khady has convinced me to open this issue anyway. π