Coder Social home page Coder Social logo

Comments (10)

qoomon avatar qoomon commented on June 15, 2024 1

Thanks for reporting. Could you upload a most simple project to reproduce the error? Or the command steps to reproduce it on my own.

from gradle-git-versioning-plugin.

qoomon avatar qoomon commented on June 15, 2024 1

I'll try to fix it this weekend

from gradle-git-versioning-plugin.

uli-f avatar uli-f commented on June 15, 2024 1

Yes, I could produce it locally by pulling the changes I made on GitHub to my local machine and then start the gradle build locally. The stacktrace attached above came out of a local gradle run.

I had to use GitHub only for the creation of the git objects that seems to be responsible for the issue.

from gradle-git-versioning-plugin.

uli-f avatar uli-f commented on June 15, 2024 1

Just tried to re-produce the issue with 6.1.6 and it works perfectly fine now!

I tagged the same commit twice using the GitHub web UI to first pre-release tagging with v0.0.93 and then modifying that release by changing it from pre-release to a release and re-tagging it with v0.0.94:
commit 4c06c832c3b3a1d5e9d0441de8ef53386c5f983d (HEAD -> main, tag: v0.0.94, tag: v0.0.93, origin/main, origin/HEAD)

Updated my local machine with a git pull and executed the gradle build locally - works fine now!

Thank you for fixing this issue so promptly, much appreciated 😃

from gradle-git-versioning-plugin.

qoomon avatar qoomon commented on June 15, 2024

And the whole stacktrace would be nice gradle --stacktrace ...

from gradle-git-versioning-plugin.

uli-f avatar uli-f commented on June 15, 2024

Thanks for your reply.

I tried to reproduce the error by creating an annotated tag in the local copy of the the repo with the git command:
git tag -a v0.0.86 -m "test message goes here"
However, I wasn't able to reproduce the error that way.

I was only able to reproduce it by carrying out certain actions in the GitHub Web UI:

  • create a pre-release, tag is v0.0.87
    2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f (HEAD -> main, tag: v0.0.87, origin/main, origin/HEAD)
  • edit the pre-release v0.0.87, don't change the tag, change it to a release
    2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f (HEAD -> main, tag: v0.0.87, origin/main, origin/HEAD)
  • now, without changing any code in the repo, create a pre-release v0.0.88, the commit will now have two tags:
    2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f (HEAD -> main, tag: v0.0.88, tag: v0.0.87, origin/main, origin/HEAD)

The commit 2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f is then responsible for the crash:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: org.eclipse.jgit.errors.IncorrectObjectTypeException: Object 2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f is not a tag.

Deleting the tag with git tag -d v0.0.88 and thus going back to
2736cce28f8c8d51ab8e09e1b898b4fcceef4a3f (HEAD -> main, tag: v0.0.87, origin/main, origin/HEAD)
solves the issue

Gradle stacktrace is attached
stacktrace.zip

from gradle-git-versioning-plugin.

qoomon avatar qoomon commented on June 15, 2024

the error in the stacktrace says Object ... is not a tag is that the right stacktrace, because you reported Object ... is not a commit

from gradle-git-versioning-plugin.

uli-f avatar uli-f commented on June 15, 2024

Thanks for pointing that out.
Not quite sure what went wrong there on my side 🤷🏼
Please let me know if there is anything else that might be helpful to track this down.

from gradle-git-versioning-plugin.

qoomon avatar qoomon commented on June 15, 2024

@uli-f could you produce the error locally after you run git pull after you created the pre-releases at github?

from gradle-git-versioning-plugin.

qoomon avatar qoomon commented on June 15, 2024

Feel free to give version 6.1.6 a try

from gradle-git-versioning-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.