Skip to content

Commit 944bf01

Browse files
committed
Remove leftover merge conflicts
1 parent 35d9a76 commit 944bf01

File tree

3 files changed

+5
-131
lines changed

3 files changed

+5
-131
lines changed

.github/workflows/ci.yaml

+1-51
Original file line numberDiff line numberDiff line change
@@ -363,56 +363,10 @@ jobs:
363363
git submodule update --init --recursive --jobs 7
364364
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
365365
366-
<<<<<<< HEAD
367366
- name: Show dependency tracking file
368367
if: ${{ always() }}
369368
run: cat community-build/dotty-community-build-deps || true
370369

371-
community_build_forward_compat:
372-
runs-on: [self-hosted, Linux]
373-
container:
374-
image: lampepfl/dotty:2021-03-22
375-
options: --cpu-shares 4096
376-
volumes:
377-
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
378-
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
379-
- ${{ github.workspace }}/../../cache/general:/root/.cache
380-
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
381-
|| (
382-
github.event_name == 'pull_request'
383-
&& !contains(github.event.pull_request.body, '[skip ci]')
384-
&& !contains(github.event.pull_request.body, '[skip community_build]')
385-
&& contains(github.event.pull_request.body, '[test_forward_compat]')
386-
)
387-
|| (
388-
github.event_name == 'workflow_dispatch'
389-
&& github.repository == 'lampepfl/dotty'
390-
)"
391-
392-
steps:
393-
- name: Reset existing repo
394-
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
395-
396-
- name: Checkout cleanup script
397-
uses: actions/checkout@v2
398-
399-
- name: Cleanup
400-
run: .github/workflows/cleanup.sh
401-
402-
- name: Git Checkout
403-
uses: actions/checkout@v2
404-
405-
- name: Add SBT proxy repositories
406-
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
407-
408-
- name: Test
409-
run: |
410-
git submodule sync
411-
git submodule update --init --recursive --jobs 7
412-
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestForwardCompat"
413-
414-
=======
415-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
416370
test_sbt:
417371
runs-on: [self-hosted, Linux]
418372
container:
@@ -512,11 +466,7 @@ jobs:
512466
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
513467
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
514468
- ${{ github.workspace }}/../../cache/general:/root/.cache
515-
<<<<<<< HEAD
516-
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, community_build_forward_compat, test_sbt, test_java8]
517-
=======
518-
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
519-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
469+
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
520470
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
521471
env:
522472
NIGHTLYBUILD: yes

community-build/src/scala/dotty/communitybuild/projects.scala

+4-69
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,6 @@ final case class SbtCommunityProject(
146146
s"--addPluginSbtFile=$sbtPluginFilePath"
147147
)
148148

149-
<<<<<<< HEAD
150-
def forwardCompat: SbtCommunityProject =
151-
this.copy(
152-
project = project + "-forward-compat",
153-
dependencies = () => dependencies().map(forwardCompatMapping),
154-
testOnlyDependencies = () => testOnlyDependencies().map(forwardCompatMapping),
155-
isForwardCompatProject = true
156-
)
157-
158-
def withScalaRelease(release: String): SbtCommunityProject =
159-
this.copy(
160-
scalacOptions = scalacOptions ++ Seq("-scala-output-version", release)
161-
)
162-
163-
=======
164-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
165149
object SbtCommunityProject:
166150
def scalacOptions = List(
167151
"-Xcheck-macros",
@@ -431,12 +415,8 @@ object projects:
431415
project = "zio",
432416
sbtTestCommand = "testJVMDotty",
433417
sbtDocCommand = forceDoc("coreJVM"),
434-
<<<<<<< HEAD
435418
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Xcheck-macros"),
436-
dependencies = () => List(izumiReflect)
437-
=======
438-
dependencies = List(izumiReflect)
439-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
419+
dependencies =List(izumiReflect)
440420
)
441421

442422
lazy val munit = SbtCommunityProject(
@@ -460,12 +440,8 @@ object projects:
460440
sbtTestCommand = "unitTests/test",
461441
// Adds <empty> package
462442
sbtDocCommand = "coreJVM/doc",
463-
<<<<<<< HEAD
464443
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
465-
dependencies = () => List(munit, scodecBits),
466-
=======
467444
dependencies = List(munit, scodecBits),
468-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
469445
)
470446

471447
lazy val scalaParserCombinators = SbtCommunityProject(
@@ -515,11 +491,6 @@ object projects:
515491
dependencies = List(cats, coop, disciplineSpecs2, scalacheck)
516492
)
517493

518-
<<<<<<< HEAD
519-
lazy val catsEffect3ForwardCompat = catsEffect3.forwardCompat.copy(compilerVersion = "3.0.2")
520-
521-
=======
522-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
523494
lazy val scalaParallelCollections = SbtCommunityProject(
524495
project = "scala-parallel-collections",
525496
sbtTestCommand = "test",
@@ -552,12 +523,8 @@ object projects:
552523
project = "discipline",
553524
sbtTestCommand = "coreJVM/test;coreJS/test",
554525
sbtPublishCommand = "set every credentials := Nil;coreJVM/publishLocal;coreJS/publishLocal",
555-
<<<<<<< HEAD
556526
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
557-
dependencies = () => List(scalacheck)
558-
=======
559527
dependencies = List(scalacheck)
560-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
561528
)
562529

563530
lazy val disciplineMunit = SbtCommunityProject(
@@ -597,11 +564,6 @@ object projects:
597564
dependencies = List(cats, disciplineMunit)
598565
)
599566

600-
<<<<<<< HEAD
601-
lazy val catsMtlForwardCompat = catsMtl.forwardCompat.copy(compilerVersion = "3.0.2")
602-
603-
=======
604-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
605567
lazy val coop = SbtCommunityProject(
606568
project = "coop",
607569
sbtTestCommand = "test",
@@ -677,13 +639,8 @@ object projects:
677639
project = "Lucre",
678640
sbtTestCommand = "adjunctJVM/test;baseJVM/test;confluentJVM/test;coreJVM/test;dataJVM/test;exprJVM/test;geomJVM/test;lucre-bdb/test;testsJVM/test",
679641
extraSbtArgs = List("-Dde.sciss.lucre.ShortTests=true"),
680-
<<<<<<< HEAD
681642
sbtPublishCommand = "adjunctJVM/publishLocal;baseJVM/publishLocal;confluentJVM/publishLocal;coreJVM/publishLocal;dataJVM/publishLocal;exprJVM/publishLocal;geomJVM/publishLocal;lucre-bdb/publishLocal",
682-
dependencies = () => List(scalaSTM, scissAsyncFile, scissEqual, scissFingerTree, scissLog, scissModel, scissNumbers, scissSerial, scissSpan, scalatest),
683-
=======
684-
sbtPublishCommand = "adjunctJVM/publishLocal;baseJVM/publishLocal;confluentJVM/publishLocal;coreJVM/publishLocal;dataJVM/publishLocal;expr0JVM/publishLocal;expr1JVM/publishLocal;exprJVM/publishLocal;geomJVM/publishLocal;lucre-bdb/publishLocal",
685643
dependencies = List(scalaSTM, scissAsyncFile, scissEqual, scissFingerTree, scissLog, scissModel, scissNumbers, scissSerial, scissSpan, scalatest),
686-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
687644
)
688645

689646
lazy val izumiReflect = SbtCommunityProject(
@@ -703,8 +660,7 @@ object projects:
703660

704661
lazy val akka = SbtCommunityProject(
705662
project = "akka",
706-
<<<<<<< HEAD
707-
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$testedCompilerVersion"),
663+
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$compilerVersion"),
708664
sbtTestCommand = List(
709665
"set every targetSystemJdk := true",
710666
// selectively disable -Xfatal-warnings due to deprecations
@@ -714,12 +670,7 @@ object projects:
714670
"akka-actor-tests/Test/compile",
715671
).mkString("; "),
716672
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
717-
dependencies = () => List(scalatest, scalatestplusJunit, scalatestplusScalacheck)
718-
=======
719-
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$compilerVersion"),
720-
sbtTestCommand = "set every targetSystemJdk := true; akka-actor-tests/Test/compile",
721673
dependencies = List(scalatest, scalatestplusJunit, scalatestplusScalacheck)
722-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
723674
)
724675

725676
lazy val monocle = SbtCommunityProject(
@@ -733,11 +684,7 @@ object projects:
733684
extraSbtArgs = List("-Dcommunity=true", "-DcommunityRemote=true", "-Dquill.macro.stdout=true"),
734685
sbtTestCommand = "runCommunityBuild",
735686
sbtPublishCommand = "publishLocal",
736-
<<<<<<< HEAD
737-
dependencies = () => List(scalatest),
738-
=======
739-
dependencies = List(), // TODO add scalatest and pprint (see protoquill/build.sbt)
740-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
687+
dependencies = List(scalatest),
741688
scalacOptions = List("-language:implicitConversions"), // disabled -Ysafe-init, due to bug in macro
742689
)
743690

@@ -773,12 +720,8 @@ object projects:
773720
project = "fs2",
774721
sbtTestCommand = "coreJVM/test; coreJS/test", // io/test requires JDK9+
775722
sbtPublishCommand = "coreJVM/publishLocal; coreJS/publishLocal",
776-
<<<<<<< HEAD
777723
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
778-
dependencies = () => List(cats, catsEffect3, munitCatsEffect, scalacheckEffect, scodecBits)
779-
=======
780724
dependencies = List(cats, catsEffect3, munitCatsEffect, scalacheckEffect, scodecBits)
781-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
782725
)
783726

784727
lazy val libretto = SbtCommunityProject(
@@ -806,20 +749,16 @@ object projects:
806749
project = "spire",
807750
sbtTestCommand = "test",
808751
sbtPublishCommand = "publishLocal",
809-
<<<<<<< HEAD
810752
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Xcheck-macros"),
811-
dependencies = () => List(cats, disciplineMunit)
812-
=======
813753
dependencies = List(cats, disciplineMunit)
814-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
815754
)
816755

817756
lazy val http4s = SbtCommunityProject(
818757
project = "http4s",
819758
sbtTestCommand = "tests/test; server/test; client/test; ember-core/test; ember-server/test; ember-client/test; circe/test",
820759
sbtPublishCommand = "publishLocal",
821760
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
822-
dependencies = () => List(cats, catsEffect3, fs2, disciplineMunit, scalacheckEffect)
761+
dependencies = List(cats, catsEffect3, fs2, disciplineMunit, scalacheckEffect)
823762
)
824763

825764
end projects
@@ -900,13 +839,9 @@ def allProjects = List(
900839
projects.libretto,
901840
projects.jacksonModuleScala,
902841
projects.specs2,
903-
<<<<<<< HEAD
904842
projects.coop,
905-
projects.coopForwardCompat,
906843
projects.spire,
907844
projects.http4s
908-
=======
909-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
910845
)
911846

912847
lazy val projectMap = allProjects.groupBy(_.project)

sbt-community-build/src/dotty/communitybuild/sbtplugin/CommunityBuildPlugin.scala

-11
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,9 @@ object CommunityBuildPlugin extends AutoPlugin {
2828

2929
override val buildSettings: Seq[Setting[_]] = Seq(
3030
dependencyOverrides ++= {
31-
<<<<<<< HEAD
32-
if (scalaVersion.value.startsWith("3.")) {
33-
val forwardCompatFilter: ModuleID => Boolean = if (isForwardCompatProject.value) (_.revision.contains("-forward-compat")) else (!_.revision.contains("-forward-compat"))
34-
val stdlibOverrides = Seq(
35-
scalaOrganization.value %% "scala3-library" % scalaVersion.value,
36-
scalaOrganization.value %% "scala3-library_sjs1" % scalaVersion.value
37-
)
38-
CommunityBuildDependencies.allOverrides(sLog.value).filter(forwardCompatFilter) ++ stdlibOverrides
39-
} else Nil
40-
=======
4131
if (scalaVersion.value.startsWith("3."))
4232
CommunityBuildDependencies.allOverrides(sLog.value)
4333
else Nil
44-
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
4534
}
4635
)
4736
}

0 commit comments

Comments
 (0)