File tree Expand file tree Collapse file tree 6 files changed +11
-14
lines changed
cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState Expand file tree Collapse file tree 6 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ library
3333 binary >= 0.7 && < 0.9 ,
3434 bytestring >= 0.10.0.0 && < 0.12 ,
3535 containers >= 0.5.0.0 && < 0.7 ,
36- deepseq >= 1.3.0.1 && < 1.5 ,
36+ deepseq >= 1.3.0.1 && < 1.6 ,
3737 directory >= 1.2 && < 1.4 ,
3838 filepath >= 1.3.0.1 && < 1.5 ,
3939 mtl >= 2.1 && < 2.4 ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ library
3939 base >= 4.9 && < 5 ,
4040 bytestring >= 0.10.0.0 && < 0.12 ,
4141 containers >= 0.5.0.0 && < 0.7 ,
42- deepseq >= 1.3.0.1 && < 1.5 ,
42+ deepseq >= 1.3.0.1 && < 1.6 ,
4343 directory >= 1.2 && < 1.4 ,
4444 filepath >= 1.3.0.1 && < 1.5 ,
4545 pretty >= 1.1.1 && < 1.2 ,
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ library
237237 if os(windows)
238238 build-depends : windns >= 0.1.0 && < 0.2
239239 else
240- build-depends : resolv >= 0.1.1 && < 0.2
240+ build-depends : resolv >= 0.1.1 && < 0.3
241241
242242 if os(windows)
243243 -- newer directory for symlinks
Original file line number Diff line number Diff line change 11# cabal update
2- Warning: Caught exception during _mirrors lookup:user error (res_query(3) failed)
3- Warning: No mirrors found for http://localhost:8000/
4- Downloading the latest package list from repository.localhost
5- Package list of repository.localhost has been updated.
6- The index-state is set to 2022-01-28T02:36:41Z.
7- # cabal update
82Downloading the latest package list from repository.localhost
93Package list of repository.localhost is up to date.
104The index-state is set to 2016-09-24T17:47:48Z.
Original file line number Diff line number Diff line change 11import Test.Cabal.Prelude
22
33main = cabalTest $ withRemoteRepo " repo" $ do
4- -- This test causes a warning about missing mirrors, the warning is
5- -- included in the expected output to make the test pass but it's not
6- -- part of the test expectations.
7- cabal " update" [" repository.localhost,2022-01-28T02:36:41Z" ]
4+ -- The _first_ update call causes a warning about missing mirrors, the warning
5+ -- is platform-dependent and it's not part of the test expectations, so we
6+ -- check the output manually.
7+ res <- recordMode DoNotRecord $
8+ cabal' " update" [" repository.localhost,2022-01-28T02:36:41Z" ]
9+ assertOutputContains " The index-state is set to 2022-01-28T02:36:41Z" res
10+ assertOutputDoesNotContain " revert" res
811 cabal " update" [" repository.localhost,2016-09-24T17:47:48Z" ]
912 cabal " update" [" repository.localhost,2022-01-28T02:36:41Z" ]
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ Target Forms
191191
192192A cabal command target can take any of the following forms:
193193
194- - A package target: ``package ``, which specifies that all enabled
194+ - A package target: ``[pkg:] package ``, which specifies that all enabled
195195 components of a package to be built. By default, test suites and
196196 benchmarks are *not * enabled, unless they are explicitly requested
197197 (e.g., via ``--enable-tests ``.)
You can’t perform that action at this time.
0 commit comments