Repository: 7mind/izumi
Pull request #1248 (2020-09-22 00:03:54)

Update pureconfig-magnolia to 0.14.0
Updates [com.github.pureconfig:pureconfig-magnolia](https://github.com/pureconfig/pureconfig) from 0.13.0 to 0.14.0.
[GitHub Release Notes](https://github.com/pureconfig/pureconfig/releases/tag/v0.14.0) - [Changelog](https://github.com/pureconfig/pureconfig/blob/master/CHANGELOG.md) - [Version Diff](https://github.com/pureconfig/pureconfig/compare/v0.13.0...v0.14.0)

I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.

If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.

Configure Scala Steward for your repository with a [`.scala-steward.conf`](https://github.com/fthomas/scala-steward/blob/6525ca66f9e66047fdcc2b5f4391921a1dec5c61/docs/repo-specific-configuration.md) file.

Have a fantastic day writing Scala!

<details>
<summary>Ignore future updates</summary>

Add this to your `.scala-steward.conf` file to ignore future updates of this dependency:
```
updates.ignore = [ { groupId = "com.github.pureconfig", artifactId = "pureconfig-magnolia" } ]
```
</details>

labels: library-update, semver-minor


Patch:
diff --git a/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/PureconfigInstances.scala b/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/PureconfigInstances.scala
index e6c43a2c4..5b97c26f0 100644
--- a/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/PureconfigInstances.scala
+++ b/distage/distage-extension-config/src/main/scala/izumi/distage/config/codec/PureconfigInstances.scala
@@ -51,7 +51,7 @@ trait PureconfigInstances {
             Left(
               ConfigReaderFailures(
                 objCur.failureFor(
-                  NoValidCoproductOptionFound(objCur.value, Seq("_invalid_format_" -> ConfigReaderFailures(ThrowableFailure(new RuntimeException(msg), None))))
+                  NoValidCoproductOptionFound(objCur.objValue, Seq("_invalid_format_" -> ConfigReaderFailures(ThrowableFailure(new RuntimeException(msg), None))))
                 )
               )
             )
@@ -75,10 +75,13 @@ trait PureconfigInstances {
   // use `Exported` so that if user imports their own instances, user instances will have higher priority
   implicit final lazy val memorySizeDecoder: Exported[ConfigReader[ConfigMemorySize]] = Exported {
     cur: ConfigCursor =>
-      try Right(cur.value.atKey("m").getMemorySize("m"))
-      catch {
-        case NonFatal(ex) =>
-          Result.fail(error.ConvertFailure(CannotConvert(cur.value.toString, classTag[ConfigMemorySize].toString, ex.toString), cur))
+      cur.asConfigValue.flatMap {
+        cv =>
+          try Right(cv.atKey("m").getMemorySize("m"))
+          catch {
+            case NonFatal(ex) =>
+              Result.fail(error.ConvertFailure(CannotConvert(cv.toString, classTag[ConfigMemorySize].toString, ex.toString), cur))
+          }
       }
   }
 }
diff --git a/distage/distage-framework/src/main/scala/izumi/distage/roles/RoleAppMain.scala b/distage/distage-framework/src/main/scala/izumi/distage/roles/RoleAppMain.scala
index 2b40f9b4d..9f15bc199 100644
--- a/distage/distage-framework/src/main/scala/izumi/distage/roles/RoleAppMain.scala
+++ b/distage/distage-framework/src/main/scala/izumi/distage/roles/RoleAppMain.scala
@@ -12,7 +12,6 @@ import izumi.fundamentals.platform.cli.model.schema.ParserDef
 import izumi.fundamentals.platform.functional.Identity
 import izumi.fundamentals.platform.language.unused
 import izumi.fundamentals.platform.resources.IzArtifactMaterializer
-import izumi.reflect.Tag
 
 import scala.concurrent.ExecutionContext
 
diff --git a/fundamentals/fundamentals-platform/.jvm/src/main/scala/izumi/fundamentals/platform/resources/ArtifactVersion.scala b/fundamentals/fundamentals-platform/.jvm/src/main/scala/izumi/fundamentals/platform/resources/ArtifactVersion.scala
index f71b80802..6db1a95be 100644
--- a/fundamentals/fundamentals-platform/.jvm/src/main/scala/izumi/fundamentals/platform/resources/ArtifactVersion.scala
+++ b/fundamentals/fundamentals-platform/.jvm/src/main/scala/izumi/fundamentals/platform/resources/ArtifactVersion.scala
@@ -2,8 +2,6 @@ package izumi.fundamentals.platform.resources
 
 import java.time.{Instant, LocalDateTime}
 
-import izumi.fundamentals.platform.language.SourceFilePosition
-import izumi.fundamentals.platform.language.SourceFilePositionMaterializer.SourcePositionMaterializerMacro
 import izumi.fundamentals.platform.time.IzTime
 import izumi.fundamentals.platform.time.IzTime._
 
@@ -72,10 +70,10 @@ object SourceFilePositionMaterializerImpl {
     import c.universe._
 
     c.Expr[IzArtifactMaterializer] {
-      q"""{          
+      q"""{
           import izumi.fundamentals.platform.build.BuildAttributes._
           import izumi.fundamentals.platform.build.MacroParameters._
-                    
+
           ${symbolOf[IzArtifactMaterializer].asClass.companion}(${symbolOf[IzArtifact].asClass.companion}(
             ${symbolOf[IzArtifactId].asClass.companion}(projectGroupId().getOrElse("???"), artifactName().getOrElse("???")),
             ${symbolOf[ArtifactVersion].asClass.companion}(artifactVersion().getOrElse("???")),
diff --git a/project/Versions.scala b/project/Versions.scala
index 877aadc72..b02461a51 100644
--- a/project/Versions.scala
+++ b/project/Versions.scala
@@ -21,7 +21,7 @@ object V {
   val circe = "0.13.0"
   val circe_generic_extras = "0.13.0"
   val circe_derivation = "0.13.0-M4"
-  val pureconfig = "0.13.0"
+  val pureconfig = "0.14.0"
   val magnolia = "0.17.0"
   val jawn = "1.0.0"
 


Test patch:
diff --git a/distage/distage-testkit-scalatest/src/main/scala/izumi/distage/testkit/scalatest/AssertSync.scala b/distage/distage-testkit-scalatest/src/main/scala/izumi/distage/testkit/scalatest/AssertSync.scala
index f2905b8d3..05e08c689 100644
--- a/distage/distage-testkit-scalatest/src/main/scala/izumi/distage/testkit/scalatest/AssertSync.scala
+++ b/distage/distage-testkit-scalatest/src/main/scala/izumi/distage/testkit/scalatest/AssertSync.scala
@@ -2,7 +2,6 @@ package izumi.distage.testkit.scalatest
 
 import cats.effect.Sync
 import izumi.distage.testkit.scalatest.AssertSync.AssertSyncMacro
-import izumi.functional.bio.BIO
 import org.scalactic.{Prettifier, source}
 import org.scalatest.Assertion
 import org.scalatest.distage.DistageAssertionsMacro
diff --git a/fundamentals/fundamentals-bio/src/test/scala/izumi/fundamentals/bio/test/BIOSyntaxTest.scala b/fundamentals/fundamentals-bio/src/test/scala/izumi/fundamentals/bio/test/BIOSyntaxTest.scala
index a3be8862e..9f27e4697 100644
--- a/fundamentals/fundamentals-bio/src/test/scala/izumi/fundamentals/bio/test/BIOSyntaxTest.scala
+++ b/fundamentals/fundamentals-bio/src/test/scala/izumi/fundamentals/bio/test/BIOSyntaxTest.scala
@@ -46,7 +46,7 @@ class BIOSyntaxTest extends AnyWordSpec {
       a.zipParRight(b)
       a.zipWithPar(b)((a, b) => (a, b))
       a.flatMap(_ => b)
-      a.guaranteeCase(_ => a.race(b).catchAll(_ => F.unit orElse F.uninterruptible(F.race(a, b))).void)
+      a.guaranteeCase(_ => a.race(b).widenError[Throwable].catchAll(_ => F.unit orElse F.uninterruptible(F.race(a, b))).void)
       F.unit
     }
 
@@ -62,7 +62,7 @@ class BIOSyntaxTest extends AnyWordSpec {
       a.zipParRight(b)
       a.zipWithPar(b)((a, b) => (a, b))
       a.flatMap(_ => b)
-      a.guaranteeCase(_ => a.race(b).catchAll(_ => F.unit orElse F.uninterruptible(F.race(a, b))).void)
+      a.guaranteeCase(_ => a.race(b).widenError[Throwable].catchAll(_ => F.unit orElse F.uninterruptible(F.race(a, b))).void)
       F.unit
     }