-
Notifications
You must be signed in to change notification settings - Fork 7
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
Signed tags create a parse error #2
Comments
@PurpleBooth I've just released 0.5.0 of Versio -- I'm still seeing what's needed to get gpgme to build on MacOS and Windows, but if you're using Linux, please let me know if this fixes this issue and/or issue #3. Thanks! |
Amazing, I looked through the code and it looks exactly what I need to fix #2 and #3. I am loving this tool by the way, I've used it on 3 or 4 projects now. On my ubuntu pipelines I am having a problem with the binaries not being linked to the right version of LIBC
Here's the snippet of the pipeline for context version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- uses: chaaz/versio-actions/install@v1.1
name: Install versio
- name: Check projects
run: versio check
- name: Print changes
run: versio plan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USER: ${{ github.actor }} I can't test it on my laptop as I use a mac and versio isn't compiling, seemingly something to do with gpgme
I think this nails my problem, though this might be a new issue. |
Thanks for your kind words, I always love hearing what people think! Yeah, the mac and windows builds were causing me some pain. I think I got the mac version worked out if I get the runner to I had to manually work around some of those problems, and for a while I think I had the versio-install action install a binary that was built on Ubuntu 20.10, with a super recent version of glibc, which is too modern for the current Thanks again for your feedback! |
Adding gpgme with brew worked for me, I could Cargo install! 🎉 $ versio -l local release
Compiling git-mit v3.99.0 (/Users/billie/Code/git-mit/git-mit)
Compiling git-mit-install v3.99.0 (/Users/billie/Code/git-mit/git-mit-install)
Compiling git-mit-relates-to v3.99.0 (/Users/billie/Code/git-mit/git-mit-relates-to)
Compiling mit-pre-commit v3.99.0 (/Users/billie/Code/git-mit/mit-pre-commit)
Compiling mit-prepare-commit-msg v3.99.0 (/Users/billie/Code/git-mit/mit-prepare-commit-msg)
Compiling mit-commit-msg v3.99.0 (/Users/billie/Code/git-mit/mit-commit-msg)
Compiling git-mit-config v3.99.0 (/Users/billie/Code/git-mit/git-mit-config)
Finished dev [unoptimized + debuginfo] target(s) in 0.52s
Error: No key found with ID: 89E815AD087045E024678DF81235239D92D1EF9D
$ gpg -k 89E815AD087045E024678DF81235239D92D1EF9D
pub rsa2048 2020-06-16 [SC] [verfällt: 2022-06-16]
89E815AD087045E024678DF81235239D92D1EF9D
uid [ ultimativ ] Billie Thompson <billie@billiecodes.com>
sub rsa2048 2020-06-16 [E] [verfällt: 2022-06-16] Not finding the key on mac, seeing the same thing on my pipelines (they sign commits fine normally)
On my pipelines, no LIBC problem though! - name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git-user-signingkey: true
git-commit-gpgsign: true
git-tag-gpgsign: true
- uses: chaaz/versio-actions/install@v1.1
name: Install versio
- run: echo ::set-output "name=BUMP::$( versio release --dry-run )"
id: get_versio_plan
- name: Generate release
if: ${{ contains(steps.get_versio_plan.outputs.BUMP, ' -> ') }}
run: versio release Here's a snippet of my pipeline that I am using to try this out. |
Yeah, unfortunately versio doesn't yet accept as wide a range of values for If your pipeline is finding the key for commits, but not for its tags, then that's weird. The key lookup code for both places is identical (I should actual put it in its own function), so I don't know why it would work for one place and not the other. I'll dig a bit and see if I can figure that out. As a side note, I see that your pipeline is using a |
That if in there is because changing the hash of the tar of the tag for the same version of the code causes problems with Homebrew, homebrew makes some assumptions about it never changing. Looks like versio still can't find the hash
[user]
name = Billie Thompson
email = billie@billiecodes.com
signingkey = 0x1235239D92D1EF9D |
Hmm.. could you try it with just |
Looks like that it worked! 🎉
|
That's great to hear! Thanks for all your great feedback. |
If tags are signed, "versio-prev" will fail to be parsed. This is because the message has content suffixed to it.
A workaround is to use
--no-sign
when creating the versio-prev tagThe text was updated successfully, but these errors were encountered: