square-psychiatrist-19087
01/26/2024, 12:43 PMpants peek
? Or is it a bug? https://github.com/pantsbuild/pants/issues/20462wide-midnight-78598
01/26/2024, 12:48 PMsquare-psychiatrist-19087
01/26/2024, 12:56 PMwide-midnight-78598
01/26/2024, 1:24 PMwide-midnight-78598
01/26/2024, 1:28 PMdef render_json(
tds: Iterable[TargetData], exclude_defaults: bool = False, include_dep_rules: bool = False
) -> str:
return f"{json.dumps([td.to_dict(exclude_defaults, include_dep_rules) for td in tds], indent=2, cls=_PeekJsonEncoder)}\n"
I haven't really ever looked at the custom encoder before, but between that or the Pants stdout writer - not sure where else the problem could be.
Does an array end or get created on a specific target? Or is it length based? Have you identified any patterns that could help debug?
For example, if you have a large repo, and you only peek a subset of it pants peek myfolder::
wide-midnight-78598
01/26/2024, 1:29 PM{ }
- but at the console, I never see that, I only see [ ]
- but yeah, will need to investigate morewide-midnight-78598
01/26/2024, 1:35 PMpants peek ::
? Why list first?square-psychiatrist-19087
01/26/2024, 1:39 PMgit describe --tags --abbrev=0 |
xargs -I{} pants \
dependents \
--dependents-closed \
--transitive \
--changed-since={} |
xargs pants peek |
I decided to reduce the noise in the issue and show smaller reproducible examplewide-midnight-78598
01/26/2024, 1:40 PMwide-midnight-78598
01/26/2024, 1:40 PMpants peek ::
though?square-psychiatrist-19087
01/26/2024, 1:40 PMpants peek ::
works finewide-midnight-78598
01/26/2024, 1:41 PMfresh-cat-90827
01/28/2024, 10:01 PM