Comments (10)
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.
I'll try to fix it this weekend
from gradle-git-versioning-plugin.
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.
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.
And the whole stacktrace would be nice gradle --stacktrace ...
from gradle-git-versioning-plugin.
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.
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.
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.
@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.
Feel free to give version 6.1.6
a try
from gradle-git-versioning-plugin.
Related Issues (20)
- How to configure previous tag + -SNAPSHOT using GitHub Actions? HOT 5
- Tag refs ignored, pattern not recognised HOT 3
- How to use within a multi-module Gradle project? HOT 6
- Tag version issue with 6.4.0 when running in CircleCI HOT 5
- Latest release named 9.4.1 HOT 1
- Fix compatibility with Gradle `8.1` and Configuration Cache HOT 15
- Placeholder default value and describe.tag do not appear compatible
- Shortcut for next version bumped by major/minor/patch HOT 2
- org.eclipse.jgit.errors.MissingObjectException: Missing unknown <commit hash here> HOT 4
- release new version with updated version of dependency org.eclipse.jgit:org.eclipse.jgi HOT 3
- Clarify docs on ordered selection HOT 2
- [6.1.0] `./gradlew version` fails with "invalid provided ref nkiesel/main/StringBuilder - needs to start with refs/" HOT 16
- JVM compatibility error in buildSrc HOT 6
- ${describe.tag} behaviour inconsistent with $(git describe) HOT 5
- Plugin does not detect merged tags HOT 8
- Does it work with Java 8? HOT 6
- How to define the <VERSION> pattern. HOT 9
- describe.tag.version.major couses java.lang.NullPointerException when none tag fit to pattern HOT 5
- Improve compatibility with Gradle Configuration Cache HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-git-versioning-plugin.