Skip to content

Commit 3cdda29

Browse files
committed
Merge branch 'main' into flexibleunpickle
2 parents 52d7b22 + 6513b52 commit 3cdda29

File tree

1,656 files changed

+39900
-10439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,656 files changed

+39900
-10439
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
46a26945a172429740ebdd1fc83517130670080b

.github/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ RUN apt-get update && \
2222
# Install sbt
2323
ENV SBT_HOME /usr/local/sbt
2424
ENV PATH ${SBT_HOME}/bin:${PATH}
25-
ENV SBT_VERSION 1.10.5
25+
ENV SBT_VERSION 1.10.7
2626
RUN curl -sL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,33 @@ assignees: ''
99

1010
## Compiler version
1111

12-
If you're not sure what version you're using, run `print scalaVersion` from sbt
13-
(if you're running scalac manually, use `scalac -version` instead).
12+
If you're not sure which version you're using, run `print scalaVersion` from sbt.
13+
(If you're running scalac manually, use `scalac -version` instead.)
14+
15+
If possible, check if your issue appears in the nightly version of the compiler! For example, in Scala CLI (the `scala`/`scala-cli` runner script), you can use `//> using scala 3.nightly` (or `-S 3.nightly` from the command line) to grab the latest one.
1416

1517
## Minimized code
1618

1719
<!--
1820
This code should be self contained, compilable (with possible failures) and as small as possible.
1921
20-
Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue.
22+
Ideally, we should be able to just copy this code to a file and run `scalac` (and maybe `scala`) to reproduce the issue.
23+
24+
If the code has external dependencies, please provide the Scala CLI directives (or SBT/other build tool configuration) that describe them.
25+
Also note that it's easier and faster for the maintenance team to address issues minimised to reproduce bugs without external dependencies.
26+
27+
It's most convenient to also include `using` directives for the Scala version that demonstrates the problem,
28+
any compiler command-line options, as well as dependencies. An example is provided.
29+
30+
It's also fine to paste the transcript of a REPL session. Note that some bugs may be specific to the REPL.
2131
-->
2232

23-
```Scala
24-
println("hello, world")
33+
```scala
34+
//> using scala 3.7.0
35+
//> using options -Wall -Werror
36+
//> using dep com.outr::scribe:3.16.1
37+
38+
@main def test = println("hello, world")
2539
```
2640

2741
## Output

.github/workflows/ci.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ on:
2626
- cron: '0 3 * * *' # Every day at 3 AM
2727
workflow_dispatch:
2828

29-
# Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag)
29+
# Cancels any in-progress runs within the same group identified by workflow name and GH reference (branch or tag)
3030
# For example it would:
3131
# - terminate previous PR CI execution after pushing more changes to the same PR branch
32-
# - terminate previous on-push CI run after merging new PR to main
32+
# - terminate previous on-push CI run after merging new PR to main
3333
concurrency:
3434
group: ${{ github.workflow }}-${{ github.ref }}
3535
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
@@ -630,7 +630,10 @@ jobs:
630630
- ${{ github.workspace }}/../../cache/general:/root/.cache
631631
strategy:
632632
matrix:
633-
branch: [main, lts-3.3]
633+
series: [
634+
{repository: scala/scala3, branch: main}, # Scala Next nightly
635+
{repository: scala/scala3-lts, branch: lts-3.3} # Scala LTS nightly
636+
]
634637
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
635638
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'scala/scala3'"
636639
env:
@@ -660,7 +663,8 @@ jobs:
660663
- name: Git Checkout
661664
uses: actions/checkout@v4
662665
with:
663-
ref: ${{ matrix.branch }}
666+
repository: ${{ matrix.series.repository }}
667+
ref: ${{ matrix.series.branch }}
664668

665669
- name: Add SBT proxy repositories
666670
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
@@ -688,7 +692,7 @@ jobs:
688692
- name: Publish Nightly
689693
if: "steps.not_yet_published.outcome == 'success'"
690694
run: |
691-
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
695+
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaRelease"
692696
693697
nightly_documentation:
694698
runs-on: [self-hosted, Linux]
@@ -832,7 +836,7 @@ jobs:
832836
sha256sum "${msiInstaller}" > "${msiInstaller}.sha256"
833837
834838
- name: Install GH CLI
835-
uses: dev-hanz-ops/[email protected].0
839+
uses: dev-hanz-ops/[email protected].1
836840
with:
837841
gh-cli-version: 2.59.0
838842

@@ -858,7 +862,7 @@ jobs:
858862
scala3-${{ env.RELEASE_TAG }}.msi
859863
860864
- name: Publish Release
861-
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleUpload"
865+
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaUpload"
862866

863867

864868
open_issue_on_failure:

.github/workflows/language-reference.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,3 @@ jobs:
7070
fi
7171
cd ..
7272
73-
backport-to-main:
74-
name: Create pull request with backport to main
75-
permissions:
76-
pull-requests: write # for repo-sync/pull-request to create a PR
77-
runs-on: ubuntu-latest
78-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
79-
steps:
80-
- uses: actions/checkout@v4
81-
- uses: repo-sync/pull-request@v2
82-
with:
83-
destination_branch: main
84-
pr_label: area:documentation
85-
pr_title: Sync with the stable documentation branch
86-
pr_body: |
87-
This pull request is syncing the main with changes from language-reference-stable.
88-
89-
It was created automatically after ${{ github.event.head_commit.id }} by @${{ github.event.head_commit.author.username }}
90-
pr_assignee: ${{ github.event.head_commit.author.username }}
91-

.github/workflows/lts-backport.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ on:
77

88
jobs:
99
add-to-backporting-project:
10-
if: "!contains(github.event.push.head_commit.message, '[Next only]')"
10+
if: "!contains(github.event.push.head_commit.message, '[Next only]') &&
11+
github.repository == 'scala/scala3'"
1112
runs-on: ubuntu-latest
1213

1314
steps:
1415
- uses: actions/checkout@v4
1516
with:
1617
fetch-depth: 0
1718
- uses: coursier/cache-action@v6
18-
- uses: VirtusLab/scala-cli-setup@v1.5.4
19+
- uses: VirtusLab/scala-cli-setup@v1.8.0
1920
- run: scala-cli ./project/scripts/addToBackportingProject.scala -- ${{ github.sha }}
2021
env:
2122
GRAPHQL_API_TOKEN: ${{ secrets.GRAPHQL_API_TOKEN }}

.github/workflows/publish-sdkman.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- platform: WINDOWS_64
4747
archive : 'scala3-${{ inputs.version }}-x86_64-pc-win32.zip'
4848
steps:
49-
- uses: sdkman/sdkman-release-action@1f2d4209b4f5a38721d4ae20014ea8e1689d869e
49+
- uses: sdkman/sdkman-release-action@2800d4359ae097a99afea7e0370f0c6e726182a4
5050
with:
5151
CONSUMER-KEY : ${{ secrets.CONSUMER-KEY }}
5252
CONSUMER-TOKEN : ${{ secrets.CONSUMER-TOKEN }}

.github/workflows/spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
env:
5050
USER_FOR_TEST: ${{ secrets.SPEC_DEPLOY_USER }}
5151
if: ${{ env.USER_FOR_TEST != '' }}
52-
uses: burnett01/[email protected].1
52+
uses: burnett01/[email protected].2
5353
with:
5454
switches: -rzv
5555
path: docs/_spec/_site/

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ testlogs/
6262

6363
# Put local stuff here
6464
local/
65-
compiler/test/debug/Gen.jar
6665

6766
/bin/.cp
6867

.jvmopts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-Xss1m
2-
-Xms512m
3-
-Xmx4096m
2+
-Xms1024m
3+
-Xmx8192m
44
-XX:MaxInlineLevel=35
55
-XX:ReservedCodeCacheSize=512m

bin/replQ

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.."
4+
. $ROOT/bin/commonQ
5+
6+
java -Dscala.usejavacp=true -cp $cp dotty.tools.repl.Main -usejavacp "$@"

0 commit comments

Comments
 (0)