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

Error in example for the latest sbt version #518

Open
kioria opened this issue Oct 14, 2017 · 1 comment
Open

Error in example for the latest sbt version #518

kioria opened this issue Oct 14, 2017 · 1 comment

Comments

@kioria
Copy link

kioria commented Oct 14, 2017

The Task Graph page http://www.scala-sbt.org/1.x/docs/Task-Graph.html contains example for conditional task evaluation, namely this code snippet:

    scalacOptions := {
      val ur = update.value  // update task happens-before scalacOptions
      if (false) {
        val x = clean.value  // clean task happens-before scalacOptions
      }
      ur.allConfigurations.take(3)
    }

When running on the sbt version 1.0.2, build is failing with:

error: The evaluation of clean happens always inside a regular task.

So the example should be fixed to meet the newer sbt requirement.

@dwijnand
Copy link
Member

Thanks. Related to #501.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants