commercialhaskell / commercialhaskell/stack
Git dependencies fail when they have some kinds of relative symlinks
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
### General summary/comments (optional)
We have are trying to use https://github.com/input-output-hk/plutus as a git dependency. New versions of Stack fail with a tarball error.
This is an offshoot from https://github.com/commercialhaskell/stack/issues/4913 for the case that I think is *definitely* a bug.
### Steps to reproduce
Add
```
extra-deps:
- git: https://github.com/input-output-hk/plutus
commit: dbc2646112a87c710a8dd6f80b63458ca37a06c4
```
to your `stack.yaml` and `stack build`.
### Expected
It works.
### Actual
```
Unsupported tarball from https://github.com/input-output-hk/plutus/archive/dbc2646112a87c710a8dd6f80b63458ca37a06c4.tar.gz: Symbolic link dest not found from plutus-dbc2646112a87c710a8dd6f80b63458ca37a06c4/plutus-book/src/Game/Guess.lhs to ../../doc/game/guess.adoc, looking for plutus-dbc2646112a87c710a8dd6f80b63458ca37a06c4/plutus-book/src/../doc/game/guess.adoc.
```
Note that this link is *not* broken.
The link does have two levels of `..` in it, and if we look at what is actually being checked, the final path appears to still have one of the `..`s in it, possibly this is related.
### Stack version
`2.1.1.1 x86_64 hpack-0.31.2`
### Method of installation
Nix.
Contributor guide
Assessment
This issue has not been assessed yet.