Skip to content

Fix purs graph command after bundling/running single package in monorepo#1394

Merged
f-f merged 6 commits intomasterfrom
f-f/fix-purs-graph-error
Mar 29, 2026
Merged

Fix purs graph command after bundling/running single package in monorepo#1394
f-f merged 6 commits intomasterfrom
f-f/fix-purs-graph-error

Conversation

@f-f
Copy link
Copy Markdown
Member

@f-f f-f commented Mar 21, 2026

In the scenario where one has:

  • a lockfile
  • no .spago directory (so all dependencies need to be installed)
  • a monorepo where one package package-a imports a subset of the total dependencies

..then running spago bundle -p package-a or spago run -p package-a will fail with a mysterious purs graph error.

That's due to the fact that we (mistakenly) included the complete set of dependencies when running the graph check, which would fail since not all dependencies were installed. spago build is immune to this, and we lift the fix from there, reusing the same logic.

We also add a test to try to prevent this in the future.

@f-f f-f merged commit 44649c1 into master Mar 29, 2026
5 checks passed
@f-f f-f deleted the f-f/fix-purs-graph-error branch March 29, 2026 21:21
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

Successfully merging this pull request may close these issues.

1 participant