-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix #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
- Loading branch information
Showing
10 changed files
with
86 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,26 +17,8 @@ since they are intended only for use within this repository: | |
- Make sure you are on a commit that has been merged upstream to `google/proto-lens`. | ||
|
||
## Steps | ||
1. For each package *without* autogenerated proto modules, simply run (from the root of the repo): | ||
First, run `stack build` at the top level. Then, for each package that you want to upload, run | ||
|
||
stack upload {name-of-package} | ||
|
||
Then verify that they've been uploaded successfully by visiting `hackage.org` in a web browser. | ||
|
||
2. For packages *with* autogenerated proto-modules (currently: | ||
`proto-lens-protobuf-types` and `proto-lens-combinators`): these are a little | ||
harder to upload due to #185. We have a script for running `sdist`: | ||
|
||
./release.sh | ||
|
||
Then, for each package that should be uploaded: | ||
|
||
cabal upload {package}/dist/{path}.tar.gz | ||
|
||
3. Finally, tag each uploaded package with its version and push it back to upstream. For example: | ||
|
||
git tag -a proto-lens-v0.3.0.0 -m "Release proto-lens v0.3.0.0" | ||
... | ||
git remote add upstream [email protected]:google/proto-lens.git | ||
git push upstream --follow-tags # See: https://stackoverflow.com/a/26438076 | ||
|
||
Then verify that they've been uploaded successfully by visiting `hackage.org` in a web browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters