ohnosequences / nice-sbt-settings

sbt plugin with common settings for all era7/ohnosequences releases
GNU Affero General Public License v3.0
10 stars 2 forks source link

If docs are already generated, the corresponding task fails #57

Closed eparejatobes closed 7 years ago

eparejatobes commented 7 years ago

As the title says. If generating the docs does not change anything, prepareRelease fails:

java.lang.RuntimeException: Nonzero exit value: 1
    at scala.sys.package$.error(package.scala:27)
    at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:131)
    at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:102)
    at ohnosequences.sbt.nice.GitCommand$$anonfun$output$1.apply(Git.scala:30)
    at ohnosequences.sbt.nice.GitCommand$$anonfun$output$1.apply(Git.scala:30)
    at scala.util.Try$.apply(Try.scala:161)
    at ohnosequences.sbt.nice.GitCommand.output(Git.scala:30)
    at ohnosequences.sbt.nice.GitCommand.critical(Git.scala:33)
    at ohnosequences.sbt.nice.Git$GitOps$.stageAndCommit$extension(Git.scala:203)
    at ohnosequences.sbt.nice.release.tasks$$anonfun$commitLiteratorDocs$1$$anonfun$apply$21.apply(tasks.scala:198)
    at ohnosequences.sbt.nice.release.tasks$$anonfun$commitLiteratorDocs$1$$anonfun$apply$21.apply(tasks.scala:194)
laughedelic commented 7 years ago

Right, this is what @marina-manrique encountered today. I forgot about this bug. Will fix it soon.