-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
make sure ubuntu and brew versions of git-secret interoperate, because we've seen a report that they didn't #760
Comments
@FanchenBao , what version of Ubuntu are you using? According to https://packages.ubuntu.com/search?keywords=gnupg , it looks like Ubuntu 21.04 and 21.10 currently use gnupg 2.2.20; 20.04 (the LTS version) uses gnupg 2.2.19 Can anyone replicate that there is an interoperability issue between gnupg on (some) Ubuntu's and brew? |
* mention bats-core upgrade, fix grammar * Update CHANGELOG.md * move info about issue with ubuntu & brew to #760 * rephrase text * more about interoperability and gnupg versions
The Ubuntu I was using was from GitHub Actions's |
@FanchenBao above you're saying But I'm more concerned with this overall gnupg interoperability issue that surfaces occasionally. @sobolevn , do you think that we should specifically recommend that people use "matching" versions of gnupg, like perhaps all |
Maybe we can even get |
@joshrabinowitz In the doc, I was referring to the most up-to-date Ubuntu, which has @sobolevn I think that is a great idea, as it will produce clear error message when decryption fails due to the mismatch of |
I have no idea if this is actually possible 🤔 |
But, even if it is not possible we can write |
Yes, that will work. I think we can update the |
@FanchenBao do you want to give this a spin? 🙂 |
Sure thing. |
This is something really needed, because in terms of users with macOS, and CI/CI on Ubuntu there is no way to configure git-secret properly with different versions of gpg.. :( |
Can you try the workaround specified above, using brew to install a matching version as on Ubuntu? |
@joshrabinowitz its tricky thing, because installing git-secret via brew, then installing gnupg@2.2 it's not working for me (even older version installed, git-secret is using a newer one) or maybe I don't know how to do it properly :) |
@dkonopka can you please try uninstalling git-secret and gnupg using brew, then installing gnupg at the desired version from brew, then installing git-secret from brew too? Please let us know if this installs the expected versions and works. I appreciate this report and feedback, I haven't had a chance to try this on an osx/brew system yet. Thank you! |
@joshrabinowitz sure thing, it helped 🚀 🚀 🚀
and then:
|
Hm you didn't show uninstalling the latest version of gnupg. Are you sure it wasn't still lingering around? Also look at the env var that lets you specify a particular path to gpg (I forget the var name right now sorry) |
@joshrabinowitz edited my previous comment, I just properly reinstalled gpg, by adding brew cleanup :) |
So this is resolved for you? Looks like you're getting 2.2.xx version of gnupg |
@joshrabinowitz yup, it is finally working for me (however versions are a bit different): MacOS (dev environment):
Ubuntu (ci environment)
|
Closing:
|
In #758 's changes, @FanchenBao wrote about a current (2022-01-17) interoperability issue between OSX's Brew setup of git-secret, and "latest Ubuntu", this quotes him below:
The text was updated successfully, but these errors were encountered: