Closed
Description
Bug description
cabal unpack
doesn't preserve permissions of executable files.
To Reproduce
$ curl https://hackage.haskell.org/package/hhwloc-0.2.0/hhwloc-0.2.0.tar.gz > hhwloc-0.2.0.tar.gz
$ cabal unpack hhwloc-0.2.0.tar.gz
$ ll hhwloc-0.2.0/hwloc/autogen.sh
shows autogen.sh's permissions to be -rw-r--r--, while
$ curl https://hackage.haskell.org/package/hhwloc-0.2.0/hhwloc-0.2.0.tar.gz > hhwloc-0.2.0.tar.gz
$ tar -xzf hhwloc-0.2.0.tar.gz
$ ll hhwloc-0.2.0/hwloc/autogen.sh
shows them to be -rwxr-xr-x, which are the original permissions.
Expected behavior
Permissions to be preserved.
System information
- macOS, linux
cabal 3.0.0.0
,ghc 8.8.2
Additional context
- this seems like a regression since sdist drops executable permissions for files in the tarball #620 (comment)
- the hackage CI build of my package fails because of this.
Metadata
Metadata
Assignees
Labels
No labels