Ticket #565 (new defect)

Opened 4 years ago

Last modified 15 months ago

sdist is broken on Windows

Reported by: Orphi Owned by:
Priority: low Milestone: cabal-install-0.16
Component: cabal-install tool Version: 1.6.0.2
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform: Windows

Description

Read it and weep:

E:\Orphi\Haskell\_Hackage\AOC-HalfInteger>cabal configure
Resolving dependencies...
Configuring AOC-HalfInteger-1.0...

E:\Orphi\Haskell\_Hackage\AOC-HalfInteger>cabal -v3 sdist
Creating dist\src (and its parents)
Building source dist for AOC-HalfInteger-1.0...
Creating dist\src\sdist.1876\AOC-HalfInteger-1.0 (and its parents)
Creating dist\src\sdist.1876\AOC-HalfInteger-1.0\.\Data (and its parents)
copy .\Data\HalfInteger.hs to
dist\src\sdist.1876\AOC-HalfInteger-1.0\.\Data\HalfInteger.hs
Creating dist\src\sdist.1876\AOC-HalfInteger-1.0 (and its parents)
copy Licence.txt to dist\src\sdist.1876\AOC-HalfInteger-1.0\Licence.txt
Preprocessing library AOC-HalfInteger-1.0...
Creating dist\src\sdist.1876\AOC-HalfInteger-1.0 (and its parents)
copy Setup.hs to dist\src\sdist.1876\AOC-HalfInteger-1.0\Setup.hs
copy .\AOC-HalfInteger.cabal to
dist\src\sdist.1876\AOC-HalfInteger-1.0\.\AOC-HalfInteger.cabal
Source tarball created: dist\AOC-HalfInteger-1.0.tar.gz
cabal: dist\src\sdist.1876\AOC-HalfInteger-1.0\Data\HalfInteger.hs: removeFile: permission denied (Permission denied)

Change History

Changed 4 years ago by Orphi

  • version changed from 1.6.0.1 to 1.6.0.2

Changed 3 years ago by duncan

I've no idea what we're supposed to do here. We're using removeDirectoryRecursive having written the tarball. So the files opened to construct the tarball have been completely read and hence closed. So we should not have any of the files open so the recursive remove should not fail.

Discovering why it does actually fail will need someone with a Windows debugger and some patience.

Does this happen repeatably? Is it the same file every time? Does it happen with all packages or just this one?

Changed 15 months ago by kosmikus

  • priority changed from normal to low
  • milestone set to cabal-install-0.16

Still need more info. Tempted to close this, but keeping it around for now.

Note: See TracTickets for help on using tickets.