Create an annotated tag with an empty message, then report on it:
git tag -a 1.2.3 -m ''
chalk insert foo
Expected behavior
The operation is successful, and the chalk report contains tag-related keys.
Observed behavior
Chalk outputs warnings, something like:
warn: unable to retrieve Git ref data: 3f1bbc7b19cee603a52c61eb42203cf60bdfcb7e due to: index -1 not in 0 .. 136
warn: 1.2.3: Git tag couldn't be loaded
and chalk report omits the tag-related keys.
Other Information
The impact is just for annotated tags with an empty tag message. I believe that's a completely legitimate/supported thing to do (e.g. from a rationale of the tag message not being the best place to write things, and then not wanting to repeat yourself), but probably not extremely common.
Example
Create an annotated tag with an empty message, then report on it:
Expected behavior
The operation is successful, and the chalk report contains tag-related keys.
Observed behavior
Chalk outputs warnings, something like:
and chalk report omits the tag-related keys.
Other Information
The impact is just for annotated tags with an empty tag message. I believe that's a completely legitimate/supported thing to do (e.g. from a rationale of the tag message not being the best place to write things, and then not wanting to repeat yourself), but probably not extremely common.
Occurs with:
main
, https://github.com/crashappsec/chalk/commit/482b0ed0e92b3bb75d8439cd11eeb5115d592b95