Panics on fresh repository with no tags yet
Closed this issue · 5 comments
Nerzal commented
Heyho, i'm workin on a new lib, that i just started 10 mins ago.
Bumptag does not seem to like being run on a new repository, when there are no tags yet.
tobias@tobias-P870DM-G:~/go/src/github.com/Nerzal/atreugo-swagger$ bumptag
panic: command 'git describe --tags --abbrev=0' failed: exit status 128
fatal: Keine Namen gefunden, kann nichts beschreiben.
goroutine 1 [running]:
main.panicIfError(...)
/home/tobias/go/pkg/mod/github.com/sv-tools/bumptag@v1.5.0/bumptag.go:298
main.main()
/home/tobias/go/pkg/mod/github.com/sv-tools/bumptag@v1.5.0/bumptag.go:370 +0x9d3
fatal: Keine Namen gefunden, kann nichts beschreiben.
more or less translates to
fatal: No names found, cannot describe
SVilgelm commented
I can check it in 3 or 4 hours
—
Sergey Vilglem
https://www.vilgelm.info
… On Sunday, Feb 23, 2020 at 12:22 PM, Nerzal ***@***.*** ***@***.***)> wrote:
Heyho, i'm workin on a new lib, that i just started 10 mins ago.
Bumptag does not seem to like being run on a new repository, when there are no tags yet.
***@***.***:~/go/src/github.com/Nerzal/atreugo-swagger$ bumptag panic: command 'git describe --tags --abbrev=0' failed: exit status 128 fatal: Keine Namen gefunden, kann nichts beschreiben. goroutine 1 [running]: main.panicIfError(...) ***@***.***/bumptag.go:298 main.main() ***@***.***/bumptag.go:370 +0x9d3
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#42?email_source=notifications&email_token=AAD74MMPVAXGIEA2EKMS7OTREK5GDA5CNFSM4KZ4WVYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPSN3NA), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAD74MOVX3O6435SSWSPNRDREK5GDANCNFSM4KZ4WVYA).
Nerzal commented
no problem (:
SVilgelm commented
@Nerzal, I cannot reproduce it
20-02-23 17:23 % git init
Initialized empty Git repository in .../tmp/.git/
20-02-23 17:23 % touch 123
20-02-23 17:23 % git add .
20-02-23 17:23 % git ci -m"123"
[master (root-commit) 8736659] 123
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 123
20-02-23 17:24 % bumptag
tag v0.1.0
Tagger: Sergey Vilgelm <sergey.vilgelm@ibm.com>
Date: Sun Feb 23 17:24:06 2020 -0600
Bump version v0.1.0
20-02-23 17:24 % git tag -d v0.1.0
Deleted tag 'v0.1.0' (was 197ae63)
20-02-23 17:24 % bumptag 0.0.1
tag v0.0.1
Tagger: Sergey Vilgelm <sergey.vilgelm@ibm.com>
Date: Sun Feb 23 17:24:30 2020 -0600
Bump version v0.0.1
SVilgelm commented
I see what happened :) I'm checking an error for No names found
text, but you have errors in German
SVilgelm commented
Please test v1.5.1, should work