-
Notifications
You must be signed in to change notification settings - Fork 80
Accept multiple package manifest formats #435
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
Comments
Template Haskell is something that is used to eliminate a lot of boilerplate, but it can often feel too "magical" so that one doesn't understand what's going on behind the scenes. Could a similar issue occur here? |
This is different. It’s more like the purs.json file is a standard. You can implement a config for your package manager, and if that config contains everything required by the purs.json standard then you don’t have to generate it as an additional file. There’s no code involved. |
This is really a social issue: we meant to disallow publishing through the legacy pipeline at some point, as that doesn't give us a channel to report publishing issues to package maintainers. |
Just to clarify a little: I am only suggesting that we omit the requirement to have a However, this is just omitting the purs.json file when submitting your package to the registry. The purs.json file is still the lingua franca for all packages as far as the registry is concerned:
|
#593 implemented support for spago.yaml files. We can support more config files in the future if we want, but spago.yaml is all that's planned for now so I'm going to close this. |
The registry by default only accepts a
purs.json
manifest file.However, we've demonstrated in the legacy import tool that it is possible to derive a
purs.json
manifest from a legacy Spago manifest file — though it means creating version ranges from thin air. This got me thinking.If a manifest file format is in use in the community, and it can be used to derive a correct
purs.json
manifest without having to modify the user-provided data, then I suggest we support it directly in the registry. This gives users fewer files to maintain in their repositories and less duplicated data. For example:purs.json
files, and any package manager can support the registry by generating this file on behalf of their users.purs.json
file, then the registry will fall back to the first supported format it finds. For example, the new-style Spago config files will have a format usable for apurs.json
file, so a package with aspago.dhall
file using the new format will be accepted.In order for a format to be supported it must be translatable to a
purs.json
schema with no modifications. For example, that means:purs.json
(it shouldn't omit fields such as the "owners" field)To start we would only support the spago config format, with the option to expand over time if we want.
The text was updated successfully, but these errors were encountered: