From 95e58e0c33c26638b35b1b0f0739b71cb26c4aab Mon Sep 17 00:00:00 2001 From: RenkuBot Date: Wed, 8 Jan 2025 06:04:10 +0000 Subject: [PATCH 1/2] chore: Update scala3-library from 3.5.2 to 3.6.2 --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 37b6044e..d4247ef1 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -19,7 +19,7 @@ object Dependencies { val http4sPrometheusMetrics = "0.24.6" val redis4Cats = "1.7.2" val sbtMdoc = "2.5.2" - val scala = "3.5.2" + val scala = "3.6.2" val scalacheckEffectMunit = "2.0.0-M2" val scodec = "2.2.2" val scodecBits = "1.2.1" From 7a9d81eaae7b87e25da8d9ee0debb158b4033d91 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 8 Jan 2025 14:56:43 +0100 Subject: [PATCH 2/2] Fix compile errors due to scala update --- .../io/renku/search/provision/reindex/ReIndexDocument.scala | 2 +- .../search/provision/group/GroupAddedProvisioningSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/search-provision/src/main/scala/io/renku/search/provision/reindex/ReIndexDocument.scala b/modules/search-provision/src/main/scala/io/renku/search/provision/reindex/ReIndexDocument.scala index 7a2fc19d..08b34e4f 100644 --- a/modules/search-provision/src/main/scala/io/renku/search/provision/reindex/ReIndexDocument.scala +++ b/modules/search-provision/src/main/scala/io/renku/search/provision/reindex/ReIndexDocument.scala @@ -25,7 +25,7 @@ private object ReIndexDocument: given Encoder[ReIndexDocument] = MapBasedCodecs.deriveEncoder given Decoder[ReIndexDocument] = MapBasedCodecs.deriveDecoder - def lockDocument[F[_]: Sync: Clock]( + def lockDocument[F[_]: Sync]( messageId: Option[MessageId] ): LockDocument[F, ReIndexDocument] = LockDocument.whenExists(id => diff --git a/modules/search-provision/src/test/scala/io/renku/search/provision/group/GroupAddedProvisioningSpec.scala b/modules/search-provision/src/test/scala/io/renku/search/provision/group/GroupAddedProvisioningSpec.scala index df7aec21..098b8b6b 100644 --- a/modules/search-provision/src/test/scala/io/renku/search/provision/group/GroupAddedProvisioningSpec.scala +++ b/modules/search-provision/src/test/scala/io/renku/search/provision/group/GroupAddedProvisioningSpec.scala @@ -7,7 +7,7 @@ import io.renku.events.EventsGenerators import io.renku.search.GeneratorSyntax.* import io.renku.search.events.{GroupAdded, GroupUpdated} import io.renku.search.model.ModelGenerators -import io.renku.search.model.{Id, Name, Namespace} +import io.renku.search.model.{Name, Namespace} import io.renku.search.provision.ProvisioningSuite import io.renku.search.provision.events.syntax.* import io.renku.search.solr.documents.{Group as GroupDocument, *}