Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / OfflineFlag / offlineFlag.test.hs
blob00dc5c17ba626287317b407ccd647750628fb259
1 import Test.Cabal.Prelude
3 main =
4 cabalTest $ withShorterPathForNewBuildStore $ do
5 skipUnlessGhcVersion ">= 8.1"
6 withProjectFile "cabal.repo.project" $ do
7 withRepo "repo" $ do
8 fails $ cabal "v2-build" ["current", "--offline"]
9 cabal "v2-build" ["current"]
10 cabal "v2-build" ["current", "--offline"]