witty-crayon-22786
11/02/2017, 8:29 PMrough-waiter-82403
11/02/2017, 8:31 PMCan only BUILD gen if a Go local sources source root is defined
witty-crayon-22786
11/02/2017, 8:32 PMwitty-crayon-22786
11/02/2017, 8:32 PM<gitroot>/src/go
rough-waiter-82403
11/02/2017, 8:32 PMwitty-crayon-22786
11/02/2017, 8:35 PMwitty-crayon-22786
11/02/2017, 8:35 PMcontrib/go/examples
directory in the pantsbuild repo: https://github.com/pantsbuild/pants/tree/master/contrib/go/examples ... not sure if there are other good open source examples.enough-analyst-54434
11/02/2017, 8:37 PMCan only BUILD gen for a single Go local sources source root,
is instructive. That says what it means, and Iunless I missed a big change, pants has a strong opinion on only allowing 1 go source root and 1 go remote source root.witty-crayon-22786
11/02/2017, 8:38 PMenough-analyst-54434
11/02/2017, 8:40 PMrough-waiter-82403
11/02/2017, 8:42 PMenough-analyst-54434
11/02/2017, 8:43 PMmicroscopic-intern-4465
11/03/2017, 12:26 AMhappy-kitchen-89482
11/03/2017, 12:28 AMhappy-kitchen-89482
11/03/2017, 12:28 AMhappy-kitchen-89482
11/03/2017, 12:28 AMhappy-kitchen-89482
11/03/2017, 12:28 AMechoing-engineer-75628
11/03/2017, 2:34 PMechoing-engineer-75628
11/03/2017, 2:34 PMname='gfc-aws-kinesis_${SCALA_REV}',
etc.enough-analyst-54434
11/03/2017, 3:07 PMname='gfc-aws-kinesis_{}'.format(SCALA_REV),
.
That said, if name
is a jar
parameter, you probably want scala_jar
. See the BUILD Dictionary under 'Other BUILD Symbols': https://www.pantsbuild.org/build_dictionary.htmlenough-analyst-54434
11/03/2017, 3:07 PMrough-dog-96241
11/03/2017, 7:46 PMrough-dog-96241
11/03/2017, 7:46 PMprehistoric-advantage-59814
11/03/2017, 9:17 PMprehistoric-advantage-59814
11/03/2017, 9:17 PMwitty-crayon-22786
11/03/2017, 9:20 PM.pants.d
witty-crayon-22786
11/03/2017, 9:21 PM--cache-ignore
or --no-cache-read
. the former will rebuild something regardless of whether you just finished building it... the latter will just cause the cache to be skipped if the thing currently needs to be builtwitty-crayon-22786
11/03/2017, 9:21 PMwitty-crayon-22786
11/03/2017, 9:21 PMwitty-crayon-22786
11/03/2017, 9:21 PM--cache-compile-zinc-ignore
or --no-cache-compile-zinc-read