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
{{ message }}
Repository navigation
Fall back to spago.dhall files for packages without a bower.json #218
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?
Activity
thomashoneyman commentedon Sep 16, 2021
As discussed briefly with @JordanMartinez on Discord, we may have to do some tweaking of files to make this work. For example:
packages.dhallfile too, not just thespago.dhallfilemetadata.versionin thepackages.dhallto match whatever version of Spago is being used to run the script (or to some fixed 0.14-compatible version)licensekey (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.jsonfile, maybe we just try to pull out thelicensekey and rely on the output ofspago ls depsfor the list of project dependencies at specific versions?@f-f, would
spago ls depsbe a reliable way to get the package dependencies? Or isspago bump-versiona better move?