Open ducwindow opened 8 years ago
I look into the below code, checkPgpSignatures gets a list of dependecies from libraryDependencies which list 9 modules. However, the checkPgpSignatures doesn't check the org.scala-lang:scala-library:2.10.4. Is it somehow filtered out?
libraryDependencies [info] List(org.brianmckenna:wartremover:0.13:plugin->default(compile), org.scala-lang:scala-library:2.10.4, com.sqality.scct:scct:0.3:scct, org.scoverage:scalac-scoverage-plugin:0.98.2:scoverage, org.specs2:specs2:1.12.3:test, org.hamcrest:hamcrest-all:1.1:test, org.mockito:mockito-all:1.9.0:test, junit:junit:4.7:test, org.scalacheck:scalacheck:1.10.1:test)
Source code
lazy val verifySettings: Seq[Setting[]] = Seq( // TODO - This is checking SBT and its plugins signatures..., maybe we can have this be a separate config or something. /*signaturesModule in updateClassifiers <<= (projectID, sbtDependency, loadedBuild, thisProjectRef) map { ( pid, sbtDep, lb, ref) => val pluginIDs: Seq[ModuleID] = lb.units(ref.build).unit.plugins.fullClasspath.flatMap( get moduleID.key) GetSignaturesModule(pid, sbtDep +: pluginIDs, Configurations.Default :: Nil) },*/ signaturesModule in updatePgpSignatures <<= (projectID, libraryDependencies) map { ( pid, deps) => GetSignaturesModule(pid, deps, Configurations.Default :: Nil) }, updatePgpSignatures <<= (ivySbt, signaturesModule in updatePgpSignatures, updateConfiguration, ivyScala, target in LocalRootProject, appConfiguration, streams) map { (is, mod, c, ivyScala, out, app, s) => PgpSignatureCheck.resolveSignatures(is, GetSignaturesConfiguration(mod, c, ivyScala), s.log) }, checkPgpSignatures <<= (updatePgpSignatures, pgpVerifier, streams) map PgpSignatureCheck.checkSignaturesTask )
Question: checkPgpSignatures seems to skip the signature checking for the couple dependency modules. Can we force it to check all dependencies?
For example: my default xml shows 16 dependencies. However, the checkPgpSignatures only check for 8 dependencies. ./target/resolution-cache/reports/hello-world_2.10-default.xml : shows 16 dependencies:
checkPgpSignatures reports only 8 dependencies: