Search code examples
rubyrakebundler

Remove Bundler gem_task (v)tag prefix for git release tags


Is it possible to configure Bundler's rake gem_tasks to not add the v prefix to git tags it creates for a gem release?

I am using git-flow which already tags the release without the v. So doing the release with rake release creates a duplicate tag for each release. I'd like to avoid this duplicate tag if possible.

Thanks.


Solution

  • The v prefix is hardcoded (as of Bundler v1.4.0.pre.1). See https://github.com/bundler/bundler/blob/v1.4.0.pre.1/lib/bundler/gem_helper.rb#L140