Only use GPG2 in tests (#1676)

GPG1 is deprecated and stuck in v1.4 from 2018. GPG2 is recommended. We
only use the GPG binary in tests and when the host system has both
versions it causes problems because we hardcode the GPG import command
in GpgSystemCommandExension to use the binary named "gpg", which could
be linked to either GPG1 or GPG2, causing the other test to fail when
the version of GPG that runs in tests is incompatible with the version of GPG
that imports the keys.

With this PR we only support GPG2 from now on.
This commit is contained in:
Lai Jiang
2022-06-22 11:03:41 -04:00
committed by GitHub
parent e1ea176daa
commit 62236f7581
6 changed files with 28 additions and 28 deletions
+2
View File
@@ -19,6 +19,8 @@ apt-get install locales -y
locale-gen en_US.UTF-8
apt-get install apt-utils gnupg -y
apt-get upgrade -y
# Install GPG2 (in case it was not included)
apt-get install gnupg2 -y
# Install Java
apt-get install openjdk-11-jdk-headless -y
# Install Python