Skip to content
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

Trouble using local package_set #1088

Closed
jeslie0 opened this issue Oct 15, 2023 · 4 comments
Closed

Trouble using local package_set #1088

jeslie0 opened this issue Oct 15, 2023 · 4 comments

Comments

@jeslie0
Copy link

jeslie0 commented Oct 15, 2023

I don't seem to be able to use local package sets with spago-0.93.14. I have run spago init and changed my spago.yaml to the following:

package:
  dependencies:
    - console
    - effect
    - prelude
  name: test
  test:
    dependencies: []
    main: Test.Main
workspace:
  extra_packages: {}
  package_set:
    path: ./packages.json

Running spago build presents me with the following error:

❌ Couldn't parse Spago config, error:
  An error occurred while decoding a JSON value:
  Under 'Config':
  At object key workspace:
  Under 'WorkspaceConfig':
  At object key package_set:
  Under 'SetFromUrl':
  At object key url:
  No value was found.

Are local package sets allowed? The custom-package-sets seems to imply that this is allowed, but it isn't mentioned in the workspace section at all.

@f-f
Copy link
Member

f-f commented Oct 15, 2023

0.93.14 does not support the path key. Could you upgrade to the latest one? (0.93.18)

@jeslie0
Copy link
Author

jeslie0 commented Oct 15, 2023

It doesn't look like version 0.93.18 is available easily for Nix yet. I can have a look when https://github.com/thomashoneyman/purescript-overlay is updated.

@f-f
Copy link
Member

f-f commented Oct 15, 2023

Indeed. That's the tracking issue to get it up to speed: thomashoneyman/purescript-overlay#47

We also have an in-progress flake at #981

I'll close as I believe the issue is fixed with latest

@f-f f-f closed this as completed Oct 15, 2023
@thomashoneyman
Copy link
Member

The issue with getting it in purescript-overlay is that none of the Spago releases are happening on GitHub, so the overlay isn't picking them up. I'm back from PTO now and can look at reading out NPM releases instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants