Gradle task :mongodb-crypt:verifyCryptLibs fails to execute installed gpg

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Declined
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Build
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      JAVA-6187 introduced the :mongodb-crypt:verifyCryptLibs Gradle task, which uses gpg.

      I have it installed (my gpg (GnuPG/MacGPG2) 2.2.41 is in /usr/local/bin/gpg) and gpg --version (as well as env -v gpg --version) works in my shell (zsh 5.9 (arm64-apple-darwin24.0)). However, the aforementioned task, which is run, for example, when I try to build the driver (./gradlew clean spotlessApply check scalaCheck testClasses docs jar -x test -x integrationTest), fails with

      Execution failed for task ':mongodb-crypt:verifyCryptLibs'.
      > gpg is required to verify libmongocrypt tarballs since 1.18.0 but was not found on PATH. Install gpg (e.g. `apt-get install gnupg`, `brew install gnupg`, Gpg4win on Windows), or pass -PskipCryptVerify=true for offline development builds.
      

      ross@mongodb.com confirmed that the task also fails for him.

            Assignee:
            Ross Lawley
            Reporter:
            Valentin Kavalenka
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: