Skip to content

Add search for gpgv_binary common install paths if not found#512

Closed
amoses12 wants to merge 1 commit intomasterfrom
austin/gnupg-path-update
Closed

Add search for gpgv_binary common install paths if not found#512
amoses12 wants to merge 1 commit intomasterfrom
austin/gnupg-path-update

Conversation

@amoses12
Copy link
Contributor

@amoses12 amoses12 commented Feb 2, 2026

This PR adds a search for the gpgv_binary install in common paths on linux systems before hitting the fallback logic. This is especially useful when installing in containers such as docker

@amoses12 amoses12 marked this pull request as ready for review February 3, 2026 22:27
@amoses12 amoses12 requested a review from a team as a code owner February 3, 2026 22:27
@amoses12 amoses12 marked this pull request as draft February 3, 2026 22:27
@amoses12 amoses12 marked this pull request as ready for review February 4, 2026 22:33
emily-curry
emily-curry previously approved these changes Feb 6, 2026
another-yijiao
another-yijiao previously approved these changes Feb 11, 2026
Copy link

@another-yijiao another-yijiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could not reproduce the command -v gpgv failure scenario in testing but the changes make sense to me.

gpgv_binary="$(command -v gpgv || true)";
# Fallback to common paths if command -v fails (e.g., in Docker builds where PATH isn't updated)
if [ ! -x "$gpgv_binary" ]; then
for path in /usr/bin/gpgv /bin/gpgv /usr/local/bin/gpgv; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this really be the responsibility of install.sh? /usr/bin, /bin, and/or /usr/local/bin should be added to the system's PATH, which command will then use.

@amoses12 amoses12 dismissed stale reviews from another-yijiao and emily-curry via a63b7c9 February 17, 2026 19:04
@amoses12 amoses12 force-pushed the austin/gnupg-path-update branch from 794a8a8 to a63b7c9 Compare February 17, 2026 19:04
@amoses12 amoses12 closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments