Skip to content

Fix create basis package resolution - #43

Merged
julienvincent merged 1 commit into
kepler16:masterfrom
itai-spiritt:fix-create-basis-package-resolution
Mar 8, 2026
Merged

julienvincent merged 1 commit into
kepler16:masterfrom
itai-spiritt:fix-create-basis-package-resolution

Conversation

@itai-spiritt

Copy link
Copy Markdown
Contributor

fix for #41

@julienvincent julienvincent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to contribute a fix! I would however propose tackling this in a slightly different manner. See my comments below

Comment thread packages/kmono-build/src/k16/kmono/build.clj Outdated
Comment thread packages/kmono-build/test/k16/kmono/build_test.clj Outdated
@itai-spiritt

Copy link
Copy Markdown
Contributor Author

@julienvincent
i have updated the code and tests
i think that query-dependencies is quite useful

Comment thread packages/kmono-build/src/k16/kmono/build.clj Outdated
Comment thread packages/kmono-build/src/k16/kmono/build.clj Outdated
Comment thread packages/kmono-build/test/k16/kmono/build_test.clj
Comment thread packages/kmono-build/test/k16/kmono/build_test.clj Outdated
Comment thread packages/kmono-core/src/k16/kmono/core/graph.clj Outdated

@julienvincent julienvincent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, last thing; Please can you squash your commits into a single commit and give it a description. This is used for the changelog, and for having a clean history.

Alternatively, I can just squash everything on merge if you would prefer. Let me know.

Rewrites `create-basis` to replace `:local/root` workspace dependencies
by iterating over the resolved basis `:libs` map instead of the package's
`:depends-on` set. This ensures correct resolution even after `filter-by`
clears `:depends-on`, and preserves non-workspace libs unchanged.

Adds tests covering local dep replacement, filtered packages, non-workspace
libs, and libs with no version.
@itai-spiritt
itai-spiritt force-pushed the fix-create-basis-package-resolution branch from 718166b to 731e9c6 Compare March 8, 2026 12:23
@itai-spiritt

Copy link
Copy Markdown
Contributor Author

done

@julienvincent
julienvincent merged commit 79ca32f into kepler16:master Mar 8, 2026
6 checks passed
@julienvincent

Copy link
Copy Markdown
Contributor

Thanks!

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.

2 participants