Temporary workaround

This commit is contained in:
Alexandre Archambault 2019-02-26 15:43:24 +01:00
parent 9bd17e0fdd
commit d21d388e85
1 changed files with 9 additions and 7 deletions

View File

@ -36,13 +36,15 @@ object ArtifactsRun {
.withArtifactTypes(Set(Type.all))
.withClassifiers(params.classifiers.getOrElse(Nil).toSet)
.withTransformArtifacts { l =>
if (params.includeSignatures)
l.flatMap { a =>
val sigOpt = a.extra.get("sig")
Seq(a) ++ sigOpt.toSeq
}
else
l
val l0 =
if (params.includeSignatures)
l.flatMap { a =>
val sigOpt = a.extra.get("sig")
Seq(a) ++ sigOpt.toSeq
}
else
l
l0.distinct // temporary, until we can use https://github.com/coursier/coursier/pull/1077 from here
}
.withCache(
FileCache()