Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show new server index state in cabal v2-update #6934

Closed
jneira opened this issue Jun 30, 2020 · 1 comment
Closed

Show new server index state in cabal v2-update #6934

jneira opened this issue Jun 30, 2020 · 1 comment

Comments

@jneira
Copy link
Member

jneira commented Jun 30, 2020

  • Hi, it is a minor ui improvement but i hope it will not be very difficult to implemement
  • The actual cabal v2-update default output is:
PS D:\dev\ws\haskell\hls> cabal v2-update
Downloading the latest package list from hackage.haskell.org
To revert to previous state run:
    cabal v2-update 'hackage.haskell.org,2020-06-29T21:09:43Z'
  • I often need to know the actual timestamp, not the previous one, to fill the index-state cabal.project field or simply compare with release or revisions dates on hackage.
    • So i have to run a second cabal update to make it tell me the last state, just downloaded
  • So the output could be changed to something like:
 PS D:\dev\ws\haskell\hls> cabal v2-update
Downloading the latest package list from hackage.haskell.org
hackage.haskell.org index state updated to '2020-06-29T22:09:43Z'
To revert to previous state run:
    cabal v2-update 'hackage.haskell.org,2020-06-29T21:09:43Z'
  • for each server updated
@phadej
Copy link
Collaborator

phadej commented Jun 30, 2020

 cabal --version
cabal-install version 3.3.0.0
compiled using version 3.3.0.0 of the Cabal library 
% cabal update
Downloading the latest package list from hackage.haskell.org
Updated package list of hackage.haskell.org to the index-state 2020-06-30T06:46:07Z
To revert to previous state run:
    cabal v2-update 'hackage.haskell.org,2020-06-25T09:14:58Z'

Resolved in #6810, Duplicate of #6804

@phadej phadej closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants