You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Tasks.html says "Dynamically changing the structure of the task graph is possible. Tasks can be injected into the execution graph based on the result of another task". in 0.12-land you do that with flatMap, in 0.13 you use the Def.taskDyn macro instead.
The text was updated successfully, but these errors were encountered:
# Problem
The run task on the linkerd example configurations does not accept arguments:
```
$ ./sbt 'linkerd-examples/transit:run --log.level=DEBUG'
[info] Loading project definition from /Users/alex/workspace/linkerd/project
[info] Set current project to all (in build file:/Users/alex/workspace/linkerd/)
[error] Expected key
[error] Expected '::'
[error] Expected end of input.
[error] linkerd-examples/transit:run --log.level=DEBUG
```
# Solution
Parse arguments using "the exotic, elusive creature known as inputTaskDyn, with which even Stack Overflow cannot help you" (1) and feed them into `run`.
(1) sbt/sbt#999
"I guess taskDyn still isn't documented is it. Maybe someone can open a bug and I'll try to get to it for 0.13.2" — @harrah on IRC just now
in the meantime the intrepid searcher can find glimmers of enlightenment at such places as:
http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Tasks.html says "Dynamically changing the structure of the task graph is possible. Tasks can be injected into the execution graph based on the result of another task". in 0.12-land you do that with
flatMap
, in 0.13 you use theDef.taskDyn
macro instead.The text was updated successfully, but these errors were encountered: