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

Allow the solver to find workspace packages in a monorepo #1196

Merged
merged 8 commits into from
Mar 11, 2024

Conversation

f-f
Copy link
Member

@f-f f-f commented Mar 8, 2024

If you have several packages in a monorepo, Spago does the right thing if the build is package-set based - it will take these workspace packages and treat them as local and with higher priority.

That was not the case with the solver, where we took the set of all packages (including the workspace ones) and considered them as coming from the Registry.

Test case is included. @imsaravana369 this is the issue that you stumbled into when misspelling the package-set config.

@f-f f-f requested a review from JordanMartinez March 8, 2024 06:57
@f-f f-f changed the title Allow for the solver to find workspace packages in a monorepo Allow the solver to find workspace packages in a monorepo Mar 8, 2024
@f-f f-f merged commit 5df0296 into master Mar 11, 2024
3 checks passed
@f-f f-f deleted the fix-monorepo-with-solver branch March 11, 2024 16:31
@f-f f-f restored the fix-monorepo-with-solver branch March 11, 2024 16:34
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