Open pdeva opened 4 years ago
I think can happen if your git clone was a shallow checkout.
In order to be useful, gradle-revapi needs some way to understand what the previous released version of your code was. At palantir we just cut git tags on develop (and our CircleCI workflows do a full clone), so we can easily find the most recently released thing by running git describe --tags --abbrev=0 HEAD^
see link.
If you use the same style of cutting git tags on develop and want to make this work, you might be able to tweak your GitLab config so that it does a deeper checkout. Alternatively, if there's some other way you want to determine the previously released version, it's probably possible to wire that up to revapi?
i can confirm that git checkout is set to max depth
Ok so if running git describe --tags --abbrev=0 HEAD^
doesn't work, how would you like gradle-revapi to figure out what the previously released version of your codebase was? (Also links would be great if this is an open-source codebase!)
What happened?
Seeing this error when running
gradlew check
inside gitlab ci. seems the way revapi uses git requires has some issues. works fine locally or in circleci.What did you want to happen?
build without errors.