Skip to content

Commit a9a468b

Browse files
authored
Merge pull request #2444 from dotty-staging/topic/fix-pgp-signing
Fix PGP signing
2 parents f556b04 + 6d9ea4a commit a9a468b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.drone.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pipeline:
1111
image: lampepfl/dotty:24-04-2017
1212
pull: true
1313
commands:
14-
- ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
1514
- ./project/scripts/sbt "${CI_TEST}"
1615
when:
1716
branch:

compiler/src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ object Erasure extends TypeTestsCasts{
234234
* in ExtensionMethods#transform.
235235
*/
236236
def cast(tree: Tree, pt: Type)(implicit ctx: Context): Tree = {
237-
// TODO: The commented out assertion fails for tailcall/t6574.scala
238-
// Fix the problem and enable the assertion.
239-
// assert(!pt.isInstanceOf[SingletonType], pt)
237+
assert(!pt.isInstanceOf[SingletonType], pt)
240238
if (pt isRef defn.UnitClass) unbox(tree, pt)
241239
else (tree.tpe, pt) match {
242240
case (JavaArrayType(treeElem), JavaArrayType(ptElem))

project/scripts/sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ else
1313
fi
1414

1515
if [ $SHOULD_RUN = true ]; then
16+
# get the ivy2 cache:
17+
ln -s /var/cache/drone/ivy2 "$HOME/.ivy2" || true
18+
19+
# run sbt with the supplied arg:
1620
sbt -J-Xmx4096m \
1721
-J-XX:ReservedCodeCacheSize=512m \
1822
-J-XX:MaxMetaspaceSize=1024m \

project/scripts/sbtPublish

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ if [ $SHOULD_RUN = false ]; then
1414
exit 0
1515
fi
1616

17-
if [ -z "$SONATYPE_USER" -o -z "$SONATYPE_PW" -o -z "$PGP_PW" ]; then
17+
if [ -z "$2" -o -z "$3" -o -z "$4" ]; then
1818
echo "invalid args: this script takes 4 args, usage:"
1919
echo ""
2020
echo " ./project/scripts/sbt SHOULD_RUN SONATYPE_USER SONATYPE_PW PGP_PW"
2121
exit 1
2222
fi
2323

24-
CMD=' ;set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "'"$SONATYPE_USER"'", "'"$SONATYPE_PW"'")'
25-
CMD="$CMD ;set pgpPassphrase := Some(\"\"\"$PGP_PW\"\"\".toCharArray)"
24+
CMD=' ;set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "'"$2"'", "'"$3"'")'
25+
CMD="$CMD ;set pgpPassphrase := Some(\"\"\"$4\"\"\".toCharArray)"
2626
CMD="$CMD ;set pgpSecretRing := file(\"/keys/secring.asc\")"
2727
CMD="$CMD ;set pgpPublicRing := file(\"/keys/pubring.asc\")"
2828
CMD="$CMD ;dotty-bootstrapped/publishSigned ;sonatypeRelease"
2929

30-
echo "Will run sbt with command: \"$CMD\""
31-
30+
export NIGHTLYBUILD="yes"
3231
sbt -J-Xmx4096m \
3332
-J-XX:ReservedCodeCacheSize=512m \
3433
-J-XX:MaxMetaspaceSize=1024m \

0 commit comments

Comments
 (0)