Skip to content

Backpack infdefinite error explain#11669

Open
jappeace wants to merge 5 commits intohaskell:masterfrom
jappeace:backpack-infdefinite-error-explain
Open

Backpack infdefinite error explain#11669
jappeace wants to merge 5 commits intohaskell:masterfrom
jappeace:backpack-infdefinite-error-explain

Conversation

@jappeace
Copy link
Copy Markdown
Collaborator

@jappeace jappeace commented Mar 27, 2026

Changes the error message from:

Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
planned package consumer-0.1.0.0 is broken due to missing package
  framework-0.1.0.0+95RTb42ZWxa9J13cUStM0q

To

Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
      planned package consumer-0.1.0.0
          is broken due to missing package
            framework-0.1.0.0 (has unfilled signature: App)
              The package is installed as indefinite.
              To use it, rebuild it in the same cabal project as the consumer so cabal can fill the signatures.

Hopefully it gives more guidence on what's going on to the user. I encountered this when trying to use backpack in a nix setup (for example jappeace-sloth/prrrrrrrrr#2) It keeps on wanting to build everything locally and I couldn't understand why. I still don't fully understand why it can't have partially filled modules upstream. It claims it's because of nix but I don't understand it.

It's not nix, I'm in a deep cabal hole, but it looks like I'm finding a way out of it (slowly). This is the final backpack PR for now, I'll investigate it more another time. Frankly I want (good) mobile support more then I want to work with backpack.

@jappeace jappeace force-pushed the backpack-infdefinite-error-explain branch from 0a16ea3 to 9d64a70 Compare March 27, 2026 22:42
```
Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
planned package consumer-0.1.0.0 is broken due to missing package
  framework-0.1.0.0+95RTb42ZWxa9J13cUStM0q
````

To

```
Error:
    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
      planned package consumer-0.1.0.0
          is broken due to missing package
            framework-0.1.0.0 (has unfilled signature: App)
              The package is installed as indefinite.
              To use it, rebuild it in the same cabal project as the consumer so cabal can fill the signatures.
```

Hopefully it gives more guidence on what's going on to the user. I encountered this when trying to use backpack in a nix setup (for example jappeace-sloth/prrrrrrrrr#2) It keeps on wanting to build everything locally and I couldn't understand why. I still don't fully understand why it can't have partially filled modules upstream. It claims it's because of nix but I don't understand it.
@jappeace jappeace force-pushed the backpack-infdefinite-error-explain branch from 9d64a70 to 6926b83 Compare March 27, 2026 22:43
Add missing expected output file for cabal variant of Backpack Fail5 test

The setupAndCabalTest function runs the test twice: once with setup and
once with cabal. The setup variant uses setup-external-fail.out, but the
cabal variant needs setup-external-fail.cabal.out which was missing,
causing the test to expect empty output and fail.
@jappeace jappeace force-pushed the backpack-infdefinite-error-explain branch from 4864b7b to 1adc564 Compare April 10, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants