You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plan.json: Include store-dir and compiler-abi fields
The plan.json file was missing crucial information needed to locate
packages in the store directory structure. When cabal-install stores
packages, it uses a full compiler identifier including an ABI tag (e.g.,
"ghc-9.10.1-69c3") but plan.json only included the basic compiler ID
("ghc-9.10.1"). This made it impossible for external tools like
cabal-plan to correctly locate packages and their files in the store.
This commit adds:
1. A new "compiler-abi" field with the ABI tag string
2. A "store-dir" section containing:
- The complete store directory path (with full compiler ID)
- The store package database path
- The store incoming directory path
These additions allow tools to accurately locate packages in the store
without having to guess or reconstruct the paths themselves. The
StoreDirLayout is now passed to the JSON encoder, making all
store-related paths available in plan.json.
The issue reported in the original ticket seems to be about the location
of LICENSE files, but the plan.json may still lack sufficient
information to locate all license files since the packages may not be
located in the store, but in different package databases given by
the --package-db flag. This will do for now.
Fixes#10726
0 commit comments