Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cats-core, cats-free to 2.12.0 #313

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/main/scala/rpm4s/cli/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package rpm4s.cli

import java.nio.file.Path

import cats.implicits._
import cats.syntax.all._
import com.monovore.decline._
import rpm4s.data.{Architecture, License}
import rpm4s.data._
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object Dependencies {
val cats = "2.1.1"
val cats = "2.12.0"
val fs2 = "2.4.2"
val scalatest = "3.2.2"
val scalatestplus = "3.2.2.0"
Expand Down
4 changes: 2 additions & 2 deletions repo-utils/jvm/src/main/scala/rpm4s/repo/repo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import java.nio.file._
import java.security.MessageDigest

import cats.effect.{Blocker, ContextShift, Effect}
import cats.implicits._
import cats.syntax.all._
import fs2.{Chunk, Pipe, Stream}
import rpm4s.data.Checksum.Sha256
import rpm4s.data._
import rpm4s.repo.utils.compress.gzip
import rpm4s.repo.data.updateinfo.UpdateF.Update
import cats.implicits._
import cats.syntax.all._


package object repo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import rpm4s.repo.data.primary._
import rpm4s.repo.data.primary.PackageF.PackageBuilder
import rpm4s.repo.utils.xml.{EndEvent, StartEvent, xmlevents}
import cats._
import cats.implicits._
import cats.syntax._

import scala.annotation.tailrec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import java.security.MessageDigest
import cats.effect.{Effect, Sync}
import fs2.{Pipe, Stream}
import rpm4s.data.Checksum
import cats.implicits._
import cats.syntax.all._

package object hash {

Expand Down
2 changes: 1 addition & 1 deletion repo-utils/jvm/src/main/scala/rpm4s/repo/yast2/Yast2.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rpm4s.repo.yast2

import cats._
import cats.implicits._
import cats.syntax.all._
import fs2.{Pipe, Pull, RaiseThrowable, Stream}
import rpm4s.data.Checksum.{Sha1, Sha256}
import rpm4s.data.{Architecture, Checksum, Name}
Expand Down
1 change: 0 additions & 1 deletion repo-utils/jvm/src/test/scala/RepomdSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import scodec.bits.{BitVector, ByteVector}
import fs2.{Pure, Stream}
import rpm4s.repo.data.primary.{PackageF, SizeInfo}
import rpm4s.repo.repomd.xml.primary.xml2packages
import cats.implicits._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rpm4s.repo.data
import java.time.Instant

import cats.Id
import cats.implicits._
import cats.syntax.all._
import rpm4s.data.Checksum


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rpm4s.repo.data.primary

import cats.Id
import cats.implicits._
import cats.syntax.all._
import rpm4s.data._

case class PackageF[F[_]](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rpm4s.repo.data.updateinfo
import java.time.Instant

import cats.Id
import cats.implicits._
import cats.syntax.all._
import rpm4s.data.{CVE, _}


Expand Down
4 changes: 2 additions & 2 deletions shared/src/main/scala/rpm4s/codecs/Extractor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ object Extractor {
)
val sigTags: Set[SignatureTag] = Set.empty
def extract(data: Data): Result[Vector[T]] = {
import cats.implicits._
import cats.syntax.all._
//TODO: needs more validation
val a = for {
names <- data(namesTag)
Expand Down Expand Up @@ -211,7 +211,7 @@ object Extractor {
)
val sigTags: Set[SignatureTag] = Set.empty
def extract(data: Data): Result[Vector[FileEntry]] = {
import cats.implicits._
import cats.syntax.all._
for {
dirNames <- data(HeaderTag.DirNames)
dirIndexes <- data(HeaderTag.DirIndexes)
Expand Down
1 change: 0 additions & 1 deletion shared/src/main/scala/rpm4s/data/EVR.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package rpm4s.data

import rpm4s.codecs.ConvertingError
import cats.implicits._

case class EVR(
version: Version,
Expand Down
Loading