Migrate from spago-legacy to spago - #18
Merged
Merged
Conversation
f-f
requested changes
Jun 15, 2026
m-rinaldi
commented
Jun 15, 2026
Collaborator
|
@m-rinaldi could you also upgrade CI while we are at it? it's using deprecated actions |
Owner
|
Seems spago is still on an old version |
Collaborator
|
yeah I think this will need updating |
Contributor
Author
|
On the way: purescript-contrib/setup-purescript#47 |
f-f
approved these changes
Jun 24, 2026
f-f
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @m-rinaldi this is great!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
migrate to new spago (
spago.yaml)Summary
Migrates the build tooling from
spago-legacy(Dhall-based) to the current spago (YAML-based).Changes
spago.yaml— test configurationThe old
test.dhallextendedspago.dhallwith extra source globs and test-only dependencies. In new spago, test configuration lives directly underpackage.testinspago.yaml. However, new spago'spackage.testdoes not support custom sources — onlytest/**/*.pursis used for test sources.docs/Examples/→test/Examples/The example
.pursand.jsfiles were previously included in the test build via thedocs/Examples/**/*.pursglob intest.dhall. Since that glob can no longer be expressed inspago.yaml, and the examples exist primarily as test fixtures (imported directly byIntegrationSpec.purs), they have been moved totest/Examples/. Module names and all imports are unchanged. Documentation (Readme.md, assets) remains indocs/Examples/.test.dhallremovedNo longer needed; superseded by the
package.testsection inspago.yaml.Compiler warnings fixed
Removed unused imports across example files and
TestHelpers.purs, and fixed warnings inRequestSpec.purs.