-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tag fetch conflicts that break detect-version #13
Comments
Reproduced:
|
Here it the magic:
If we ask
Now, when we ask git to fetch remote tags, we face the conflict:
The first log line tells us the same tag in remote repository points to another object. How can it be? Git has 2 types of tags: regular and annotated. The difference is that regular tag points directly to specific commit, while annotated tag contains annotation (message) bound to tag, stored in separate object, which then points to target commit:
This is what really happens:
|
Run milaboratory/github-ci/actions/detect-version@v1
with:
canonize: true
fetch-depth: 100
/usr/bin/git fetch --deepen=1 origin refs/tags/:refs/tags/
From https://github.com/milaboratory/redberry-pipe
! [rejected] 1.1.0 -> 1.1.0 (would clobber existing tag)
Error: command "git 'fetch' '--deepen=1' 'origin' 'refs/tags/:refs/tags/'" failed with code '1':
From https://github.com/milaboratory/redberry-pipe
The text was updated successfully, but these errors were encountered: