Skip to content

Refactor#6792

Merged
mpilgrem merged 1 commit intomasterfrom
refactor
Aug 17, 2025
Merged

Refactor#6792
mpilgrem merged 1 commit intomasterfrom
refactor

Conversation

@mpilgrem
Copy link
Member

Rename BuildCache as BuildFileCache.

Rename field of BuildFileCache as fileCache (times was a misnomer).

Move FileCacheInfo from Stack.Types.Package to be co-located with BuildFileCache.

Use type synonym FileCache.

Move toCachePkgSrc to Stack.Build.ConstructPlan (the only place it is used).

Move functions from Stack.Types.ConfigureOpts to Stack.ConfigureOpts, to avoid cyclic module dependencies.

Rename configureOpts to configureOptsFromBase to avoid clash with ConfigCache field name.

Please also shortly describe how you tested your change. Bonus points for added tests! Relying on CI.

Rename `BuildCache` as `BuildFileCache`.

Rename field of `BuildFileCache` as `fileCache` (`times` was a misnomer).

Move `FileCacheInfo` from `Stack.Types.Package` to be co-located with `BuildFileCache`.

Use type synonym `FileCache`.

Move `toCachePkgSrc` to `Stack.Build.ConstructPlan` (the only place it is used).

Move functions from `Stack.Types.ConfigureOpts` to `Stack.ConfigureOpts`, to avoid cyclic module dependencies.

Rename `configureOpts` to `configureOptsFromBase` to avoid clash with `ConfigCache` field name.
@mpilgrem mpilgrem merged commit be06675 into master Aug 17, 2025
13 checks passed
@mpilgrem mpilgrem deleted the refactor branch August 17, 2025 15:29
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