-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Git tags are not automatically created on publishBintray #487
Comments
Mmmh, this seems to be more of a |
@cbeust It very well might but I don't understand what the problem is.
$ git remote show origin
* remote origin
Fetch URL: git@github.com:johanhaleby/kystrix.git
Push URL: git@github.com:johanhaleby/kystrix.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date) This seem to be the same settings I have for other projects such as Awaitility where git tagging seem to work (but they're using Maven). So not quite sure what I'm missing. |
Have you tried tagging manually? git tag -a version -m "Released version" |
@ethauvin Tried it just now and it works fine |
I can also do |
@johanhaleby I cloned your project and I'm seeing the same behavior, even after re-initializing git. Kobalt is using JGit from Eclipse. Looking around I've seen people reporting the same problem when trying to tag in a subdirectory instead of the root directory. Since you have subprojects, I wonder if that is what causing the problem. @cbeust I haven't looked at the code, but JGit might need to have the (sub)project root set prior to being called. |
@ethauvin Thanks for trying it out.
I also read up on the problem and I can confirm that I'm in the root project when I run the kobalt command. So I suppose it's likely that it's a problem with jgit or how it's used. |
I've not looked at the Kobalt code but I've thought about it a bit and here are some guesses on what may happen.
When it comes to I also have another thought related to this. I want to release my to projects in one go, but given the way Kobalt seem to operate, what if I do |
I have the following configuration:
However when I run
./kobaltw assemble uploadBintray
the git tagging step gives me the following error that I cannot understand:I've cloned the project from github as I do with all other projects so nothing special there. I also run the command from the root of the project and everything is in sync with the remote repository so I don't really understand why I get this error.
The text was updated successfully, but these errors were encountered: