haskell / haskell/cabal

`cabal unpack hackport-0.5.3` fails because of syminks in tarbal

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

Description

The package tarball

https://hackage.haskell.org/package/hackport-0.5.3/hackport-0.5.3.tar.gz

fails to unpack with `cabal unpack` with the error below (consequently, also `cabal install hackport-0.5.3` will likely fail!):

```
cabal unpack hackport-0.5.3
Unpacking to hackport-0.5.3/
hackport-0.5.3/dist/build/hackport/hackport: copyFile:atomicCopyFileContents:withReplacementFile:copyFileToHandle:openBinaryFile: does not exist (No such file or directory)
```

This .tar.gz seems to have been created manually, and when inspecting its contents you find a symlink

```
lrwxrwxrwx slyfox/users 0 2017-05-24 22:54 hackport-0.5.3/hackport -> dist/build/hackport/hackport
```

which I suspect may be the reason for this. But this needs confirmation. Be that as it may, `cabal` should handle this more gracefully imho.

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.