- Check out master from both
- Check go-jsonnet/cpp-jsonnet submodule is HEAD of jsonnet tree, if not:
- Inside cpp-jsonnet:
git checkout mastergit pullcd ..git checkout -b releasegit commit -a -m 'update cpp-jsonnet'./tests.sh# Have to commit before running this, or it resets the submodule
- Checkout master
make testbazel test ...:allmkdir build ; cd build ; cmake .. ; make ; make test- modify
include/libjsonnet.hto bump the version number but add-pre1
find test_cmd -name '*.cpp' -o -name '*.golang' -o -name '*.stdout' -o -name '*.stderr' -o -name 'stdout' -o -name 'stderr' | \
xargs sed -i 's/ v0[.][0-9.]*/ NEW_VERSION_GOES_HERE/g'
- Check if any changes to the documentation are necessary by checking commits since previous release (especially stdlib additions).
- In stdlib documentation replace any "Available in upcoming release." with "Available since NEW_VERSION_GOES_HERE".
python setup.py build sdisttwine upload dist/whatever.tar.gz(Needs credentials on pypi)- ON ANOTHER MACHINE AND CHECK THAT THE VERSION IS CORRECT AND IT ACTUALLY IS BUILDING THINGS IN THE LOG:
sudo pip install jsonnet --pre --upgrade pythonimport _jsonnet_jsonnet.evaluate_snippet('foo', '1+1')- Checkout go-jsonnet master
- update cpp-jsonnet commit
./tests
- Remove -pre from version in
include/libjsonnet.h - Update version in
CMakeLists.txt - Update
test_cmdgolden file version numbers - run test again!
- commit and push
- Make release in github, write release notes by checking commits since previous release
python setup.py build sdisttwine upload dist/whatever.tar.gz(the version without the -pre)- Post to Jsonnet Google Group
- Update the live version of the website