Skip to content

Resolve the cache store on use, so packs boot - #173

Merged
imanimanyara merged 1 commit into
mainfrom
fix/pack-boot-cache-resolution
Nov 5, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
fix/pack-boot-cache-resolution

Conversation

@imanimanyara

Copy link
Copy Markdown
Contributor

Summary

Every pack failed to boot against #172 with Target class [cache] does not exist. A pack's constants class reads its config while the providers register, before the cache store exists, and PackConfigCache resolved the store at construction. It now resolves the store when it reads or forgets, falling back to the file on failure.

Core's pack tests registered their fixture after boot, which is why none caught it. PackBootsInProviderListTest lists the fixture with the application; it failed with the same error before the fix.

Verification

  • vendor/bin/pest: 1070 passed, 10 skipped.
  • PHPStan --debug: no errors. composer pint: passed.

A pack's constants class reads its config while the providers register,
before the cache store exists, and PackConfigCache resolved the store at
construction, so every pack failed to boot against #172. It now resolves
the store when it reads or forgets, and a failure falls back to the file.
A test lists a pack provider with the application, which core's other
pack tests did not.
Copilot AI balanced review requested due to automatic review settings November 5, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@imanimanyara
imanimanyara merged commit 268f9ca into main Nov 5, 2026
12 checks passed
@imanimanyara
imanimanyara deleted the fix/pack-boot-cache-resolution branch November 6, 2026 00:25
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