-
-
Notifications
You must be signed in to change notification settings - Fork 632
Simplify release #587
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
Simplify release #587
Conversation
3d74b2c
to
c6d4e0c
Compare
Instead of building our own .tgz file with release artifacts, just let GitHub do it. Makes the release instructions much quicker, and doesn't require a review pass for releases, so we'll do them more frequently. fixes bazel-contrib#586
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. Should we cut a release after this merges to make sure it works? :)
pass | ||
for command in config['bazelCommands']: | ||
bazel_args = command.split(' ') | ||
bazel_args.append("--override_repository=rules_python=%s/rules_python" % os.environ['TEST_SRCDIR']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool.
bazel_args.append("--override_repository=rules_python=%s/rules_python" % os.environ['TEST_SRCDIR']) | ||
|
||
# Bazel's wrapper script needs this or you get | ||
# Bazel's wrapper script needs this or you get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit trailing ws.
@hrfuller I'll push a tag to the repo now to verify. |
Since #587 we just distribute the whole source archive from GitHub
Instead of building our own .tgz file with release artifacts, just let GitHub do it.
Makes the release instructions much quicker, and doesn't require a review pass for releases, so we'll do them more frequently.
Note that GitHub does serve a stable SHA, and automated release notes include the workspace snippet with the SHA.
This produces an archive of 338K that users will fetch. Our previous release was 45K, so this is an order of magnitude larger since our test code, examples, and documentation are now included. However IMO it's not that important, compared with simpler maintenance.
This follows the new example from the rules authors SIG: https://github.com/bazel-contrib/rules-template
fixes #586