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 why configuring dependencies failed #10273

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Sep 23, 2024

  1. Show installed versions when configuring fails

    When `act-as-setup configure` fails, it doesn't indicate which
    dependencies are missing entirely and which ones don't satisfy the
    version constraints. The errors from `cabal build` are more informative,
    but aren't available in all contexts (nixpkgs Haskell builds, for
    example, use the `act-as-setup` interface). This makes it immediately
    clear what sort of dependency error has occurred.
    
    Before (cabal-install 3.12.1.0):
    
        Configuring test-pkg-0.1.0.0...
        Error: [Cabal-8010]
        Encountered missing or private dependencies:
            base <=4.18,
            foobar,
            test-pkg:{bar-internal, foo-internal}
    
    After:
    
        Configuring test-pkg-0.1.0.0...
        Error: [Cabal-8010]
        Encountered missing or private dependencies:
            base <=4.18 (installed: 4.19.1.0),
            foobar (missing),
            test-pkg:{bar-internal,foo-internal} (missing: :bar-internal)
    9999years committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a268772 View commit details
    Browse the repository at this point in the history
  2. Add tests

    9999years committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    dd47021 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Reorder import

    9999years committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    851dc03 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Add changelog entry

    9999years committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    1f3ab16 View commit details
    Browse the repository at this point in the history
  2. Escape braces in changelog entry

    From @geekosaur on Matrix:
    
    > since changelog-d uses the cabal file parser to parse changelog files,
    > internal braces have to be escaped
    9999years committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    2ed80a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    36be9a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3d2279c View commit details
    Browse the repository at this point in the history