Skip to content

Quickstart guide refers to v2- commands #9086

Closed

Description

@tomjaguarpaw

Describe the bug

The Quickstart guide refers to v2- commands. v2- can be omitted (since at least cabal-install version 3) and I understand it's common practice to do so. Therefore I think the Quickstart guide should do so.

To Reproduce

Read The Quickstart guide. For example, it says $ cabal v2-build

Expected behavior

The Quickstart guide should say $ cabal build.

System information

A web browser.

Additional context

This issue confused a (potential) user in the real world.

I am willing to make the necessary edits if the cabal maintainers agree that this is indeed a bug.

Activity

  1. ulysses4ever commented on Jul 5, 2023

    @ulysses4ever
    Collaborator

    @tomjaguarpaw my view is: absolutely, please go ahead with the PR. Unless someone more experienced raises a substantial concern, we'll merge it.

    Previews stub at fixing docs w.r.t. v1-vs-v2 in the reference section of the manual:

    The page you're reporting has been reported before:

    A more generic discussion on the topic:

  2. tomjaguarpaw commented on Jul 5, 2023

    @tomjaguarpaw
    MemberAuthor

    Thanks, I submitted #9087

  3. geekosaur commented on Jul 5, 2023

    @geekosaur
    Collaborator

    While people are thinking about this, when I recently submitted a cabal bug the reporting template told me to explicitly use v2- commands for clarity. This should probably change as well.

  4. ulysses4ever commented on Jul 5, 2023

    @ulysses4ever
    Collaborator

    @geekosaur by all means. I added a checkbox in #8511 Contributions are welcome!

  5. seanhess commented on Jul 6, 2023

    @seanhess

    I'm the "user in the wild" mentioned in the bug report. I just ran into the same thing that @geekosaur said:

    ➜ cabal update
    Downloading the latest package list from hackage.haskell.org
    Updated package list of hackage.haskell.org to the index-state 2023-07-06T14:48:07Z
    To revert to previous state run:
        cabal v2-update 'hackage.haskell.org,2022-11-02T09:30:00Z'
    

    I assume that I can drop the v2 prefix?

  6. ulysses4ever commented on Jul 6, 2023

    @ulysses4ever
    Collaborator

    @seanhess yes, you can. Perhaps, you'd like to submit a patch removing v2 from there? It's one grep and one change away, I'm sure.

  7. added a commit that references this issue on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions