haskell / haskell/cabal

`cabal new-build` failed with "ghc-pkg: 1: Parse of field 'name' failed"

Open
#4,663 3 comments 0 reactions 0 assignees View on GitHub
cabal-install: v2-build system type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I'm trying to install 'cabal/Cabal' from git, and getting this:

```
>> cabal new-build exe:cabal
In order, the following will be built (use -v for more details):
cabal-install-2.1.0.0
Preprocessing executable 'cabal' for cabal-install-2.1.0.0..
Building executable 'cabal' for cabal-install-2.1.0.0..
Generating manual page
/Users/m/git/cabal/dist-newstyle/build/cabal-install-2.1.0.0/build/cabal/cabal.1
...
Package contains no library to register: cabal-install-2.1.0.0...
cabal: '/usr/local/bin/ghc-pkg' exited with an error:
ghc-pkg: 1: Parse of field 'name' failed.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.