Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add purs-versions script to list supported registry versions #628

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

thomashoneyman
Copy link
Member

@thomashoneyman thomashoneyman commented Jul 19, 2023

To support #255 we need to know the full list of compilers that the registry supports. The registry supports whatever the compilers attrset in the flake.nix is, and that in turn comes from the purescript-overlay repository, which seeks to support all compilers from 0.13.0 onwards.

This PR adds a script named purs-versions that, when called, will spit out all the compilers supported by the registry separated by spaces. For example:

λ purs-versions
0.13.0 0.13.2 0.13.3 0.13.4 0.13.5 0.13.6 0.13.8 0.14.0 0.14.1 0.14.2 0.14.3 0.14.4 0.14.5 0.14.6 0.14.7 0.14.8 0.14.9 0.15.0 0.15.10 0.15.2 0.15.3 0.15.4 0.15.5 0.15.6 0.15.7 0.15.9

Note: the output is sorted by the string keys seen here, which is not suitable to order by versions because (for example) a string "0.15.10" is considered greater than "0.15.1" but less than "0.15.2", which is obviously incorrect as far as SemVer goes. So anyone consuming this should parse these strings into actual Versions and sort them, if they need a sorted order.

@thomashoneyman thomashoneyman merged commit dc2e788 into master Jul 19, 2023
14 checks passed
@thomashoneyman thomashoneyman deleted the trh/purs-versions branch July 19, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants