Thanks for helping make Twirp better! This is great!
First, if you have run into a bug, please file an issue. We try to get back to issue reporters within a day or two. We might be able to help you right away.
If you'd rather not publicly discuss the issue, please email [email protected] and/or [email protected].
Issues are also a good place to present experience reports or requests for new features.
If you'd like to make changes to Twirp, read on:
You will need git, Go 1.9+, and Python 2.7 installed and on your system's path. Install them however you feel.
Generally you want to make changes and run make
, which will install all
dependencies we know about, build the core, and run all of the tests that we
have against all of the languages we support.
Most tests of the Go server are in internal/twirptest/service_test.go
. Tests
of cross-language clients are in the clientcompat directory.
Twirp uses github pull requests. Fork, hack away at your changes, run the test
suite with make
, and submit a PR.
Twirp's docs are generated with Docusaurus. You can safely edit anything inside the docs directory, adding new pages or editing them. You can edit the sidebar by editing website/sidebars.json.
Then, to render your changes, run docusaurus's local server. To do this:
- Install docusaurus on your machine.
cd website
npm start
- Navigate to http://localhost:3000/.
Releasing versions is the responsibility of the core maintainers. Most people don't need to know this stuff.
Twirp uses Semantic versioning: v<major>.<minor>.<patch>
.
- Increment major if you're making a backwards-incompatible change.
- Increment minor if you're adding a feature that's backwards-compatible.
- Increment patch if you're making a bugfix.
To make a release, remember to update the version number in internal/gen/version.go.
Twirp uses Github releases. To make a new release:
- Merge all changes that should be included in the release into the master branch.
- Update the version constant in
internal/gen/version.go
. - Add a new commit to master with a message like "Version vX.X.X release".
- Tag the commit you just made:
git tag <version number>
andgit push origin --tags
- Go to Github https://github.com/twitchtv/twirp/releases and "Draft a new release".
- Make sure to document changes, specially when upgrade instructions are needed.
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.
We may ask you to sign a Contributor License Agreement (CLA) for larger changes.