Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To support #255 we need to know the full list of compilers that the registry supports.
#628 added a script we can run to fetch all supported versions of the
purs
executable.This PR adds the
Registry.App.CLI.PursVersions
module, which can be used to call that script within the registry codebase.Errors are handled in the following way:
purs-versions
is thrownpurs-version
which fail to parsepurs-versions
is emptyI've added a test that makes sure the output of this utility matches what we expect it to be.
This means that when a new compiler version is released and
purescript-overlay
is updated, registry things will start failing until the new version is added to the snapshot. I've discussed this with @thomashoneyman and we think that behavior is desired, as it allows us to make sure we are supporting the full set of compiler versions we expect, without having to hard code them anywhere in registry app code.