Ticket #410 (new defect)

Opened 4 years ago

Last modified 14 months ago

cabal sdist does not call the sdist build hook in custom Setup.hs

Reported by: duncan Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version: 1.2.3.0
Severity: normal Keywords:
Cc: claudiusmaximus@…, hvr@…, iain@… Difficulty: normal
GHC Version: 6.8.3 Platform:

Description

The cabal sdist command only runs the default actions, it does not call the sdist hook that gets called if you runghc Setup sdist.

The problem is there is no external method for invoking the sdist hook. Calling ./setup sdist performs the whole action, but we only want to prepare the tree and not tar it up, since cabal sdist uses internal tar code rather than calling an external tar program (which typically does not exist on windows).

Change History

Changed 4 years ago by duncan

See #372.

What we need is for the command line interface to support generating a tarball image in a given location. That way an external tool like cabal-install can call it and then call tar itself.

Changed 3 years ago by ClaudiusMaximus

  • cc claudiusmaximus@… added

Changed 18 months ago by hvr

  • cc hvr@… added

Changed 15 months ago by kosmikus

  • milestone set to cabal-install-0.16

Changed 14 months ago by iainn

  • cc iain@… added
Note: See TracTickets for help on using tickets.