Closed akerl closed 2 years ago
It feels like this may be linked to https://github.com/voxpupuli/puppet-blacksmith/issues/38
Personally I think the release job should be removed. You should never automatically bump and push in the same command unless you can specify if it's a patch, minor or major version. Another thing that I dislike is that push does pattern matching in the pkg directory rather than request an explicit version.
Both of those seem like totally reasonable concerns. In the interim though, until release gets deprecated and/or push gets upgraded, can we revert the change to the release task so it at least pushes a tag that matches the module it's releasing?
I have run into the same issues which makes the workflow a bit awkward compared to blacksmith prior to the 4.0 release.
In order to avoid having useless or wrong tags, what would be the currently recommended workflow for creating releases for major, minor and patch versions?
I'm having the same problem rake module:release
pushes module to forge with correct version, bumps version and tags it incorrectly on github (with unreleased tag). It seems to be caused by this commit. So, currently the workaround is:
gem 'puppet-blacksmith', '< 4.0.0'
Btw. the rake task description is obviously incorrect:
desc "Release the Puppet module, doing a clean, build, tag, push, bump_commit and git push."
release_dependencies = @build ? [:clean, :build, :bump_commit, :tag, :push] : [:clean, :bump_commit, :tag]
as the job does something completely different.
@TheKangaroo IMHO a breaking change like f5f1bc0b58e35a254571b4c900f41f790edf8bf5 should be covered by tests, as it covers commonly used use-cases.
Same problem here.
Thanks everyone involed in creating and maintaining this super useful extension :pray: .
Having run into this problem myself, is there a plan to fix or at least announce this problem on the README? IMHO it is a significant bug which many may run into especially when forced to upgrade to a more recent version. At first I've tried to downgrade but run into issues with Ruby and rest client which left me no choice but overwrite the Ruby task as mentioned by @deric .
Seems like overriding the behavior is the path forward for folks who want to use blacksmith.
Howdy!
I'm running into some weird behavior with tag creation:
bundle exec rake module:release
appears to push the current version and then tag a new one immediately, so I end up with a new tag that isn't on puppetforge.I'm using http://github.com/halyard/puppet-test as a test case.
Here's the output showing what happens:
The end result on the Forge is https://forge.puppet.com/halyard/test
So I end up w/ a "0.0.0" release on Puppet Forge, 0.0.1 as a tag, and 0.0.1 in the metadata file.
This differs from what used to happen, where it would tag 0.0.0, push the tag to GitHub and Puppetforge, and then bump the 0.0.1 in the metadata file.