Closed
Description
Bundler does some cool git stuff when publishing a package[1]. Conceptually, with cargo
commands instead, and with error handling and rollback elided, it does this:
$ cargo build
$ git diff --exit-code == 0
$ git diff-index --quiet --cached HEAD == 0
$ git tag -a -m \"Version #{version}\" #{version_tag}
$ git push
$ git push --tags
$ cargo publish
(version
is like 1.2.3
and version_tag
is like v1.2.3
)
Having the tags automatically created at the same commit as was released, plus ensuring that what's on github/whatever is the same as what's on crates.io would be pretty great.
1: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb#L47-L50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.