Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Nov 18, 2025

This addds the GHC Project Unit ID store path to the cabal path output as "project-unit-id". The GHC "Project Unit ID" store path has been used in cabal-install since 3.12.1.0.

Example output:

compiler-flavour: ghc
compiler-id: ghc-9.10.1
compiler-path: /nix/store/367sp8xqvk70a050fm6f8a93lig0gx41-ghc-9.10.1/bin/ghc
compiler-store-path: /home/sgillespie/.local/state/cabal/store/ghc-9.10.1-be9a
cache-home: /home/sgillespie/.cache/cabal
remote-repo-cache: /home/sgillespie/.cache/cabal/packages
logs-dir: /home/sgillespie/.cache/cabal/logs
store-dir: /home/sgillespie/.local/state/cabal/store
config-file: /home/sgillespie/.config/cabal/config
installdir: /home/sgillespie/.local/bin

Note that the new value is "project-unit-id", although I'm not 100% this makes sense. Let me know if there's a better name.

EDIT: Changed name to "compiler-store-path"


Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

* Add GHC Unit ID store to `cabal path` output

The GHC "Project Unit ID" store path has been used in cabal-install
since 3.12.1.0.

Resolves: #10165

* Add a changelog entry for PR #11266

This change modifies the output of `cabal path`, and therefore requires
a changelog entry.

* Rename compiler-project-unit-id in `cabal path`

Update `compiler-project-unit-id` to `compiler-store-path` in the `cabal
path` output, as it is much more clear.

* Add another Path test

This adds a new test that verifies the output of `compiler-store-path`
when the store-dir is explicitly configured.

* Add compiler-abi-tag to path command

(cherry picked from commit f830ff4)
@mergify mergify bot added the backport label Nov 18, 2025
@ulysses4ever ulysses4ever added the merge me Tell Mergify Bot to merge label Nov 18, 2025
@mergify mergify bot added the queued label Nov 18, 2025
@mergify mergify bot merged commit 5b30f52 into 3.16 Nov 18, 2025
89 checks passed
@mergify mergify bot deleted the mergify/bp/3.16/pr-11266 branch November 18, 2025 20:29
@mergify mergify bot removed the queued label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants