this proves the offline flag is preventing the text library from being pulled
the error message could be improved:
$ rm -rf dist-newstyle; ~/.cabal/bin/cabal build --offline
.../dist-newstyle/src/text-8e814f5854032da8: getDirectoryContents:openDirStream:
does not exist (No such file or directory)
Closes: https://github.com/haskell/cabal/issues/9641
How this was tested:
text
library as asource-repository-package
cabal install cabal --overwrite-policy=always
dist-newstyle
to remove thetext
library cached thererm -rf dist-newstyle; ~/.cabal/bin/cabal build
text
library pulled, build succeedstext
library andoffline
flag~/.cabal/bin/cabal build --offline
dist-newstyle
again, and attempt build with--offline
rm -rf dist-newstyle; ~/.cabal/bin/cabal build --offline
text
library from being pulledPlease read Github PR Conventions and then fill in one of these two templates.
Template Α: This PR modifies
cabal
behaviourInclude the following checklist in your PR:
This is an automatic backport of pull request #9771 done by Mergify.