Skip to content

Commit dd8fc7d

Browse files
committed
Auto merge of #56735 - Mark-Simulacrum:fix-sign, r=alexcrichton
Fix gpg signing in manifest builder GPG versions 2.x+ require that --batch be passed if --passphrase-fd is to be accepted. From the man page: --passphrase-fd n Read the passphrase from file descriptor n. Only the first line will be read from file descriptor n. If you use 0 for n, the passphrase will be read from STDIN. This can only be used if only one passphrase is supplied. Note that this passphrase is only used if the option --batch has also been given. This is different from GnuPG version 1.x.
2 parents bd47d68 + 4d5413b commit dd8fc7d

File tree

1 file changed

+1
-0
lines changed
  • src/tools/build-manifest/src

1 file changed

+1
-0
lines changed

src/tools/build-manifest/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ impl Builder {
623623
let mut cmd = Command::new("gpg");
624624
cmd.arg("--no-tty")
625625
.arg("--yes")
626+
.arg("--batch")
626627
.arg("--passphrase-fd").arg("0")
627628
.arg("--personal-digest-preferences").arg("SHA512")
628629
.arg("--armor")

0 commit comments

Comments
 (0)