-
Notifications
You must be signed in to change notification settings - Fork 132
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
Handle the case where the compiler version is newer than the package set compiler version #225
Comments
This is "handled" meaning that it has been thought about: ..however the error message is wrong (it should say "too new" instead of "outdated"). Also there is no "nice" way to tell spago to just go on, so I think we should add a flag You can "hack" your way around this for now by adding a layer of indirection when importing the
(this works because |
In the end it looks like we can fix this without adding a new flag, through a combination of #253 and purescript/package-sets#343 TL;DR: changing the version of the supported |
Before this `spago` would try to find out which `purs` version is supported by the set by reading the GitHub tag the upstream comes from. This brings a whole bunch of issues, e.g. we cannot ensure anything if the package set comes from somewhere else while the check is hard to override if we do, etc. With this change we now read the "minimum supported purs version" just as the version of one of the packages in the set. This fixes #225, because we: - fix the error message to just say "SemVer mismatch" instead of newer/older - make the "minimum purs version" easily overridable, as it's just the version of a package, so there's no need for a flag - make this version check actually robust, as we're not trying to climb the Dhall import chain from the AST anymore
…script#253) Before this `spago` would try to find out which `purs` version is supported by the set by reading the GitHub tag the upstream comes from. This brings a whole bunch of issues, e.g. we cannot ensure anything if the package set comes from somewhere else while the check is hard to override if we do, etc. With this change we now read the "minimum supported purs version" just as the version of one of the packages in the set. This fixes purescript#225, because we: - fix the error message to just say "SemVer mismatch" instead of newer/older - make the "minimum purs version" easily overridable, as it's just the version of a package, so there's no need for a flag - make this version check actually robust, as we're not trying to climb the Dhall import chain from the AST anymore
For example, trying to build a v0.12.5 package set with a v0.13.0 compiler:
Also, is it possible to tell spago that I know what I'm doing and I'd like to disable this check?
The text was updated successfully, but these errors were encountered: