commercialhaskell / commercialhaskell/stack
Cabal-based Travis builds cache compiled binaries
Open
component: docs (online)
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
Cabal-based Travis build put `~/.cabal/bin` on the path even after though `.cabal` is cached, meaning we use whatever stack was build by the last build that updated the cache. In #2516 that's a stack with a bug due to some previous build.
In comparison, the stack-based build puts `.local` on the path, but that's not cached.
Possible solution: remove `~/.cabal/bin/stack` before starting the build. Other executables there might be needed, and they should be safe to cache.
Contributor guide
Assessment
This issue has not been assessed yet.