abra recipe upgrade calculates tag based on ghost tags in a repo #195
Closed
opened 2021-10-11 14:50:43 +00:00 by knoflook
·
1 comment
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#195
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the current behavior
when running
abra recipe upgrade --major/minor/patcha weird thing happens. Namely, abra uses the last tag ever created to calculate a new version even if this tag was deleted before running the commandSteps to reproduce
suppose you have the following tags in your repo:
remove the last tag from an app
git tag -d 1.5.0+whateverthen run
abra recipe release --minor <app name>abra will tag the new release as
1.6.0+whateverDescribe the expected behavior
abra should use the latest available tag and tag the new release as
1.5.0+whateverAdditional information
I tried checking some things in the
plumbing.Tagobject we're getting from the repo: https://pkg.go.dev/github.com/go-git/go-git/v5@v5.4.2/plumbing/object#Tagunfortunately, neither checking for empty
Targetnor emptyHashdoes the trickI also tried running
git gc --aggressivebefore letting abra do its thing and it didn't help either. I'm a bit stuck with that and need help from some git magician 🧙No idea what I'm doing.
https://github.com/src-d/go-git/issues/983