witty-crayon-22786
10/08/2021, 5:14 PM2.8.0.dev
and a 2.7.1rc
fast-nail-55400
10/08/2021, 6:44 PMAll registered symbols: ['_python_requirements_file', 'archive', 'experimental_shell_command', 'files', 'pants_requirement', 'pex_binary', 'pipenv_requirements', 'poetry_requirements', 'python_artifact', 'python_awslambda', 'python_distribution', 'python_library', 'python_requirement_library', 'python_requirements', 'python_tests', 'relocated_files', 'resources', 'setup_py', 'shell_library', 'shunit2_tests', 'target']
https://github.com/pantsbuild/pants/runs/3841481284?check_suite_focus=true#step:9:1272hundreds-father-404
10/08/2021, 8:38 PM./pants check
? I'm starting to implement Go support. I see you have streaming output for Javahundreds-father-404
10/08/2021, 8:39 PMgo tool compile
doesn't have any output though. Only stdout
upon errors
I'm not sure if I'm supposed to batch every package's compilation together like we do with MyPy, or return one CheckResult
per go_first_party_package
? The latter, right?witty-crayon-22786
10/08/2021, 8:40 PMcheck
in particular: so you can mark the compiler result typewitty-crayon-22786
10/08/2021, 8:41 PMFallibleCompiledClassfiles
(which is the output of javac
or scalac
) as EngineAwareReturnType
, so that regardless of why you are compiling, you see the outputwitty-crayon-22786
10/08/2021, 8:42 PMtest
, we still want streaming compiler output)hundreds-father-404
10/08/2021, 8:42 PMcheck
double streaming, right? Just with no std{out,err} attached to ithundreds-father-404
10/08/2021, 8:43 PMreturn CheckResults(
[
CheckResult(
result.exit_code,
stdout="",
stderr="",
partition_description=str(coarsened_target),
)
for result, coarsened_target in zip(results, coarsened_targets)
],
checker_name="javac",
)
witty-crayon-22786
10/08/2021, 8:47 PMcheck
… but also, because it’s fallible, it will fail slow, which means that all compile errors possible will be rendered, rather than failing immediately on the first failurewitty-crayon-22786
10/08/2021, 8:48 PMtest
must have a classpath, it will currently raise an exception… but it could potentially exit cleanly with “Could not compile test: failed” or something)hundreds-father-404
10/08/2021, 8:50 PM__pkg__.a
files (the result of compilation) for transitive dependencies present when compiling. If a dep failed to compile, are you saying we should continue attempting to compile?witty-crayon-22786
10/08/2021, 8:51 PMwitty-crayon-22786
10/08/2021, 8:51 PMwitty-crayon-22786
10/08/2021, 8:51 PMwitty-crayon-22786
10/08/2021, 8:52 PMwitty-crayon-22786
10/08/2021, 8:53 PMwitty-crayon-22786
10/08/2021, 9:00 PMwitty-crayon-22786
10/08/2021, 9:08 PMrun
goal to generically get a field(set) for targets if they have a particular field? it uses TargetRootsToFieldSetsRequest
, which doesn’t seem to have that capability yetwitty-crayon-22786
10/08/2021, 9:16 PMRunFieldSet
to have an optional field that was inherited by subclasseswitty-crayon-22786
10/08/2021, 9:19 PMhundreds-father-404
10/08/2021, 9:31 PMwitty-crayon-22786
10/08/2021, 9:34 PMclass Restartable(BoolField):
alias = "restartable"
default = False
help = ("If true, runs of this target may be interrupted and "
"restarted when its input files change.")
…generically to `Target`s which will be used with RunFieldSet
witty-crayon-22786
10/08/2021, 9:35 PMwitty-crayon-22786
10/08/2021, 9:35 PMTarget
.hundreds-father-404
10/08/2021, 9:36 PMhm, i guess what i would need is for RunFieldSet to have an optional field that was inherited by subclassesI think the benefit of doing that, rather than re-requesting the target, is you can inspect the FieldSet rather than having to resolve a target
witty-crayon-22786
10/08/2021, 9:37 PMoptional_fields
and having subclasses preserve that? always a bit error prone to override concrete fieldshundreds-father-404
10/08/2021, 9:52 PMStyleRequest.prior_formatter_result
, which is not a fieldwitty-crayon-22786
10/08/2021, 9:56 PMhundreds-father-404
10/08/2021, 9:59 PMWrappedTarget