forked from google/proto-lens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
5 changed files
with
10 additions
and
43 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
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 was deleted.
Oops, something went wrong.