-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7934 from andreabedini/andrea/fix-update-message-…
…timestamp Fix the timestamp shown during cabal update
- Loading branch information
Showing
10 changed files
with
158 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/repo/pkg-1.0/pkg.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: pkg | ||
version: 1.0 | ||
build-type: Simple | ||
cabal-version: >= 1.2 | ||
|
||
executable my-exe | ||
main-is: Main.hs | ||
build-depends: base |
20 changes: 20 additions & 0 deletions
20
cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# cabal update | ||
Warning: Caught exception during _mirrors lookup:user error (res_query(3) failed) | ||
Warning: No mirrors found for http://localhost:8000/ | ||
Downloading the latest package list from repository.localhost | ||
Package list of repository.localhost has been updated. | ||
The index-state is set to 2022-01-28T02:36:41Z. | ||
To revert to previous state run: | ||
cabal v2-update 'repository.localhost,' | ||
# cabal update | ||
Downloading the latest package list from repository.localhost | ||
Package list of repository.localhost is up to date. | ||
The index-state is set to 2016-09-24T17:47:48Z. | ||
To revert to previous state run: | ||
cabal v2-update 'repository.localhost,2022-01-28T02:36:41Z' | ||
# cabal update | ||
Downloading the latest package list from repository.localhost | ||
Package list of repository.localhost is up to date. | ||
The index-state is set to 2022-01-28T02:36:41Z. | ||
To revert to previous state run: | ||
cabal v2-update 'repository.localhost,2016-09-24T17:47:48Z' |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/NewUpdate/UpdateIndexState/update-index-state.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ withRemoteRepo "repo" $ do | ||
-- This test causes a warning about missing mirrors, the warning is | ||
-- included in the expected output to make the test pass but it's not | ||
-- part of the test expectations. | ||
cabal "update" ["repository.localhost,2022-01-28T02:36:41Z"] | ||
cabal "update" ["repository.localhost,2016-09-24T17:47:48Z"] | ||
cabal "update" ["repository.localhost,2022-01-28T02:36:41Z"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
synopsis: Fix the timestamp shown during cabal update | ||
packages: cabal-install | ||
prs: #7934 |