-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out how to support sdist command #2
Comments
This is a bigger problem than it sounds, imo, because @phadej any ideas? |
I have a crazy idea... what if autopack would add the exposed modules during setup to the cabal file :> It could be guarded with an environment variable, so it doesn't clutter the git history for non-sdist workflows. Writing to a file is always problematic, requires committing it, can fail etc, so I think it would be reasonable to have this optional. |
Interesting idea, though I am not sure that it would work as I am not sure on which stage I guess we need to investigate more on the |
@vrom911, I agree with your solution. Ideally, I'd love to see something like |
Well, I made it work with: https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-field-extra-source-files So if you have As autopack doesn't really conflict with cabal-fmt, my current workflow is basically: use autopack with the above hack. Once I need to upload to hackage, I make sure my .cabal file has the modules listed explicitly (via cabal-fmt or so), while still keeping autopack in place. |
No description provided.
The text was updated successfully, but these errors were encountered: