[new-build] Use canonical path to compiler in config hash
Open
cabal-install: v2-build system
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Changing the path to ghc from `/opt/ghc/8.0.2/bin/ghc` to `/opt/ghc/8.0.2//bin/ghc` causes `cabal` to consider the compiler to have changed, leading to a lot of unnecessary recompilation.
Contributor guide
Research direction
Start by tracing how Cabal records the compiler path in its configuration hash, using the `/opt/ghc/8.0.2/bin/ghc` and `/opt/ghc/8.0.2//bin/ghc` examples from the issue. Verify that equivalent canonical paths produce the same hash and avoid unnecessary recompilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100