Commit 5554817f authored by Alexis Williams's avatar Alexis Williams

Deprecate sdist user hooks

parent 9bead321
......@@ -165,6 +165,9 @@ data UserHooks = UserHooks {
}
{-# DEPRECATED runTests "Please use the new testing interface instead!" #-}
{-# DEPRECATED preSDist "SDist hooks violate the invariants of new-sdist." #-}
{-# DEPRECATED sDistHook "SDist hooks violate the invariants of new-sdist." #-}
{-# DEPRECATED postSDist "SDist hooks violate the invariants of new-sdist." #-}
-- |Empty 'UserHooks' which do nothing.
emptyUserHooks :: UserHooks
......
......@@ -497,6 +497,12 @@ and two archives of the same format built from the same source will hash to the
- ``--output-dir``: Sets the output dir, if a non-default one is desired. The default is
``dist-newstyle/sdist/``.
``new-sdist`` is inherently incompatible with sdist hooks, not due to implementation but due
to fundamental core invariants (same source code should result in the same tarball, byte for
byte) that must be satisfied for it to function correctly in the larger new-build ecosystem.
``autogen-modules`` is able to replace uses of the hooks to add generated modules, along with
the custom publishing of Haddock documentation to Hackage.
Unsupported commands
--------------------
......
......@@ -60,7 +60,7 @@ import Control.Exception
( throwIO )
import Control.Monad
( when, forM, forM_ )
import Control.Monad.IO.Class
import Control.Monad.Trans
( liftIO )
import Control.Monad.State.Lazy
( StateT, modify, gets, evalStateT )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment