You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some packages are in the PureScript registry and do not have bower.json files, but do have spago.dhall files sufficient for producing a valid Manifest. One example is halogen-hooks:
As discussed briefly with @JordanMartinez on Discord, we may have to do some tweaking of files to make this work. For example:
We have to fetch the packages.dhall file too, not just the spago.dhall file
We have to update the metadata.version in the packages.dhall to match whatever version of Spago is being used to run the script (or to some fixed 0.14-compatible version)
We may find ourselves fixing up more fields in the future, like parsing the LICENSE file in the root if there is no license key (see Parse LICENSE file if no license is listed in the Bowerfile #220), or setting the repository key if none is set in the Spago file.
Or...rather than generating a bower.json file, maybe we just try to pull out the license key and rely on the output of spago ls deps for the list of project dependencies at specific versions?
@f-f, would spago ls deps be a reliable way to get the package dependencies? Or is spago bump-version a better move?
Some packages are in the PureScript registry and do not have
bower.json
files, but do havespago.dhall
files sufficient for producing a validManifest
. One example ishalogen-hooks
:https://github.com/thomashoneyman/purescript-halogen-hooks/tree/v0.5.0
This repository doesn't have a
bower.json
file, but it does have aspago.dhall
file that is sufficient for producing a manifest:https://github.com/thomashoneyman/purescript-halogen-hooks/blob/v0.5.0/spago.dhall
I'm proposing that, when we find a package that has a Spago file but not a Bower file, we attempt to either:
spago.dhall
file to get the package license and dependenciesbower.json
file from thespago.dhall
file, and then import the Bower file as usualThe text was updated successfully, but these errors were encountered: