Skip to content

Commit 187bd85

Browse files
Merge pull request #7279 from dotty-staging/pgp-bouncycastle
Fix errors while running publishSigned
2 parents 69f79a3 + bdbe657 commit 187bd85

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

project/scripts/sbtPublish

+9-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ if [ ! "$NIGHTLYBUILD" = "yes" ] && [ ! "$RELEASEBUILD" = "yes" ]; then
1818
exit 1
1919
fi
2020

21-
# Setup gpg
22-
export GPG_TTY="$(tty)"
23-
echo "$PGP_SECRET" | gpg --batch --import
21+
# Setup gpg (disabled, we use bouncycastle instead)
22+
# export GPG_TTY="$(tty)"
23+
# echo "$PGP_SECRET" | gpg --batch --import
24+
25+
# Setup bouncycastle instead of gpg to do signing, because gpg explodes when
26+
# doing too many signing requests in parallel (https://github.com/sbt/sbt-pgp/issues/168)
27+
mkdir -p "$HOME/.sbt/gpg"
28+
echo "$PGP_SECRET" > "$HOME/.sbt/gpg/secring.asc"
2429

2530
# run sbt with the supplied arg
2631
SBT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/sbt"
27-
"$SBT" "$RELEASE_CMD"
32+
"$SBT" -DSBT_PGP_USE_GPG=false "$RELEASE_CMD"

0 commit comments

Comments
 (0)