clojure-emacs / refactor-nrepl

nREPL middleware to support refactorings in an editor agnostic way
Eclipse Public License 1.0
256 stars 69 forks source link

Updated version.clj #395

Closed dotemacs closed 11 months ago

dotemacs commented 11 months ago

This is in response to: https://github.com/clojure-emacs/refactor-nrepl/pull/393#issuecomment-1629082764 and this comment in particular:

version-clj makes me nervous as it went 1.x -> 2.x with no changelog.

I guess not everybody uses CHANGELOGs...

The project, version-clj, was on version 1.0.0 before update to 2.0.0.

It only uses one function from version-clj in refactor-nrepl.artifacts/artifact-versions: version-sort:

This is the change that went into that function from version 1.0.0 to 2.0.0:

https://github.com/xsc/version-clj/compare/v1.0.0...v2.0.0#diff-c6b8870bce46e7fe981de278c5a5eb53847fd489211487800632111290202b63R56

No change to the actual function, but that function uses version-compare function, which did have a change, see:

https://github.com/xsc/version-clj/compare/v1.0.0...v2.0.0#diff-c6b8870bce46e7fe981de278c5a5eb53847fd489211487800632111290202b63R23

If you look at this commit: https://github.com/xsc/version-clj/commit/c05eeb8dffedda072fa41c9210cfc43cd6f1d0fd you'll see that the tests for version-sort & version-compare were added for the release 1.0.0 and were not amended at the latest release 2.0.2.

And finally a pedantic comparison of version 1.0.0 & the current stable release 2.0.2 (which is this commit's update):

https://github.com/xsc/version-clj/compare/v1.0.0...v2.0.2

dotemacs commented 11 months ago

Running lein do clean, test locally, the tests pass.

As well as 7/13 CI jobs.

Can you please re-run the tests on all the CI profiles, to ensure that it's not just a glitch?

Thanks

vemv commented 11 months ago

Cheers 🍻