Skip to content
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

Fix #185: Support and use autogen-modules. #196

Merged
merged 2 commits into from
May 22, 2018

Conversation

judah
Copy link
Collaborator

@judah judah commented May 21, 2018

This makes it possible to generate tarballs without generated modules
(which would be regenerated anyway when the package is build).
See tensorflow/haskell#180 for an example of the issues that causes.

For Cabal-1.*, this continues the behavior as before.

Unfortunately, hpack requires cabal-version: >=2.0 when you use
its generated-modules or generated-other-modules fields.
Our current set of LTSes that we support still includes Cabal-1.*
(which I think is correct). Luckily we could work around that
using hpack's verbatim field to accomplish the same thing a little
more verbosely. Additionally, I mitigated the situation a little by changing
the Cabal test script to not sdist packages that we're not releasing
(proto-lens-{tests/benchmarks}).

This change required bumping stack to 1.7.1 in order to get new enough
versions of Cabal and hpack. Happily, it greatly simplifies
the steps for releasing our packages.


This change is Reviewable

@blackgnezdo
Copy link
Collaborator

Please rebase?

judah added 2 commits May 21, 2018 22:12
This makes it possible to generate tarballs without generated modules
(which would be regenerated anyway when the package is build).
See tensorflow/haskell#180 for an example of the issues that causes.

For `Cabal-1.*`, this continues the behavior as before.

Unfortunately, `hpack` requires `cabal-version: >=2.0` when you use
its `generated-modules` or `generated-other-modules` fields.
Our current set of LTSes that we support still includes `Cabal-1.*`
(which I think is correct).  Luckily we could work around that
using `hpack`'s `verbatim` field to accomplish the same thing a little
more verbosely.  Additionally, I mitigated the situation a little by changing
the Cabal test script to not `sdist` packages that we're not releasing
(`proto-lens-{tests/benchmarks}`).

This change required bumping `stack` to `1.7.1` in order to get new enough
versions of `Cabal` and `hpack`.  Happily, it greatly simplifies
the steps for releasing our packages.
@judah judah force-pushed the autogen-modules branch from 571a5d2 to 0e8e6b9 Compare May 22, 2018 05:12
@judah judah merged commit 8884e89 into google:master May 22, 2018
@judah judah deleted the autogen-modules branch May 22, 2018 16:31
@judah judah restored the autogen-modules branch August 25, 2018 06:19
avdv pushed a commit to avdv/proto-lens that referenced this pull request Aug 9, 2023
* Fix google#185: Support and use autogen-modules.

This makes it possible to generate tarballs without generated modules
(which would be regenerated anyway when the package is build).
See tensorflow/haskell#180 for an example of the issues that causes.

For `Cabal-1.*`, this continues the behavior as before.

Unfortunately, `hpack` requires `cabal-version: >=2.0` when you use
its `generated-modules` or `generated-other-modules` fields.
Our current set of LTSes that we support still includes `Cabal-1.*`
(which I think is correct).  Luckily we could work around that
using `hpack`'s `verbatim` field to accomplish the same thing a little
more verbosely.  Additionally, I mitigated the situation a little by changing
the Cabal test script to not `sdist` packages that we're not releasing
(`proto-lens-{tests/benchmarks}`).

This change required bumping `stack` to `1.7.1` in order to get new enough
versions of `Cabal` and `hpack`.  Happily, it greatly simplifies
the steps for releasing our packages.

* More README updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants