Skip to content

v2-sdist includes a file twice in the tarball #6611

Closed
@rudymatela

Description

@rudymatela

Describe the bug
When running v2-sdist in the latest version of Speculate, one of the benchmark (example) files is included twice in the generated tarball.

To Reproduce
Steps to reproduce the behavior:

$ wget https://hackage.haskell.org/package/speculate-0.4.1/speculate-0.4.1.tar.gz
...
2020-03-23 19:55:10 (200 KB/s) - ‘speculate-0.4.1.tar.gz’ saved [101631/101631]

$ tar -xzf speculate-0.4.1.tar.gz 

$ cd speculate-0.4.1/

$ cabal v2-sdist 
Wrote tarball sdist to
./dist-newstyle/sdist/speculate-0.4.1.tar.gz

$ tar -tf dist-newstyle/sdist/speculate-0.4.1.tar.gz | grep eg/plus-abs.hs
speculate-0.4.1/eg/plus-abs.hs
speculate-0.4.1/eg/plus-abs.hs

The plus-abs example is included twice in the tarball! o.O

Expected behavior
I would expected for the generated tarball to not have repeated files.

System information

  • Arch Linux (2020-03-09)
  • cabal version 3.0.0.0 (compiled using version 3.0.1.0 of the cabal library)
  • ghc version 8.8.3

Proof:

$ cat /var/log/pacman.log | grep "pacman.*u" | tail -1
[2020-03-09T15:41:47-0300] [PACMAN] Running 'pacman -Su'

$ cabal --version
cabal-install version 3.0.0.0
compiled using version 3.0.1.0 of the Cabal library 

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.3

Additional context
I have a test on Speculate's Makefile that assures that cabal included all files tracked by git and only the files tracked by git (in case I forget to reference them on the cabal file). This ended up breaking my test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions