Skip to content

Add Resource abstraction to the SAT loader#181

Merged
kellyma2 merged 1 commit into
rmohr:mainfrom
aszady:collapse.ProvidedResource
Jan 28, 2026
Merged

Add Resource abstraction to the SAT loader#181
kellyma2 merged 1 commit into
rmohr:mainfrom
aszady:collapse.ProvidedResource

Conversation

@aszady
Copy link
Copy Markdown
Contributor

@aszady aszady commented Jan 23, 2026

[ A small extract from a larger change #153 ]


Variable generation is separated into two parts:

  • extracting Resources provided by the package – data most useful for the Loader;
  • creating SAT variable related to that resource – data most useful for the Resolve (Model).

This modularization of code should facilitates future code changes.

The VarTypeResource vs. VarTypeFile distinction was not used, therefore these were merged for further simplification.

@aszady aszady marked this pull request as ready for review January 23, 2026 16:33
@aszady aszady force-pushed the collapse.ProvidedResource branch from ed06bc6 to dbadbb6 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.ProvidedResource branch 2 times, most recently from 57c8d6d to b8aefdb Compare January 28, 2026 09:49
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.

LGTM, but let's wait for @kellyma2

Variable generation is separated into two parts:
- extracting `Resource`s provided by the package – data most useful for the `Loader`;
- creating SAT variable related to that resource – data most useful for the `Resolve` (`Model`).

This modularization of code should facilitates future code changes.

The `VarTypeResource` vs. `VarTypeFile` distinction was not used,
therefore these were merged for further simplification.
@aszady aszady force-pushed the collapse.ProvidedResource branch from b8aefdb to 91cfd90 Compare January 28, 2026 13:34
@kellyma2 kellyma2 merged commit 955f4b6 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.

3 participants