Closed Seasawher closed 2 months ago
I have made a tool to sort semvar in Lean. see Seasawher/Semver.lean.
scripts/getLatest.ps1
has a following job:
gh
commandsemver.exe
to update lean-toolchain
This is a bit compicated, so simplification may be required. If the process of sorting can be achieved as a PowerShell script, that might be better.
How do you think?
I don't understand why an executables are involved. This should look like a Semver
type, with appropriate functions to and from strings, and LE
and LT
instances.
Thanks @Seasawher for putting together a working version of this idea. I'm not completely comfortable with this solution, rather like you write in your own comment. We should aim for a much cleaner solution. I see two main possibilities:
Redo the entire action as javascript/node. This then allows the standard semver library to be used.
This sounds nice
resolve #26
This PR is tested at mk-exercise: https://github.com/Seasawher/mk-exercise