Skip to content

Remove dependency on VarContext for collecting sets of pacakges#182

Merged
manuelnaranjo merged 1 commit into
rmohr:mainfrom
aszady:collapse.installSet
Jan 28, 2026
Merged

Remove dependency on VarContext for collecting sets of pacakges#182
manuelnaranjo merged 1 commit into
rmohr:mainfrom
aszady:collapse.installSet

Conversation

@aszady
Copy link
Copy Markdown
Contributor

@aszady aszady commented Jan 23, 2026

[ A small extract from a larger change #153 ]


As the Resolve function just divides the input set of *api.Package in three different classes (installed, excluded, ignored), there is no need to use VarContext as a key in intermediary structs.
The refactored logic more clearly implements this intention. Also, this enables removing the VarContext in the future.

@aszady aszady marked this pull request as ready for review January 23, 2026 16:42
@aszady aszady force-pushed the collapse.installSet branch from b700fb9 to 151a020 Compare January 24, 2026 12:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 24, 2026

⚠️ Optional job e2e-bzlmod-toolchain-circular-dependencies failed ⚠️

  • exit status: 1

@aszady aszady force-pushed the collapse.installSet branch from 151a020 to 23be776 Compare January 27, 2026 20:45
As the `Resolve` function just divides the input set of `*api.Package` in three different classes
(installed, excluded, ignored), there is no need to use `VarContext` as a key
in intermediary structs.
The refactored logic more clearly implements this intention.
Also, this enables removing the `VarContext` in the future.
@aszady aszady force-pushed the collapse.installSet branch from 23be776 to 2c2cb99 Compare January 28, 2026 09:50
Copy link
Copy Markdown
Collaborator

@manuelnaranjo manuelnaranjo left a comment

Choose a reason for hiding this comment

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

I don't know why you change the variable name from map to set, but that has no real effect on the change

@manuelnaranjo manuelnaranjo merged commit a670012 into rmohr:main Jan 28, 2026
14 checks passed
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