silly-queen-7197
04/29/2024, 8:58 PMpants tailor
adds
javascript_sources(
name="jupytil0",
)
package_json(
name="jupytil1",
)
but then pants update-build-files
gives me
KeyError: 'name'
. Removing those targets fixes the issuewide-midnight-78598
04/29/2024, 9:05 PMsilly-queen-7197
04/29/2024, 9:06 PMwide-midnight-78598
04/29/2024, 9:07 PMwide-midnight-78598
04/29/2024, 9:08 PMwide-midnight-78598
04/29/2024, 9:10 PMpackage.json
wide-midnight-78598
04/29/2024, 9:13 PMpackage_json
should have a name if we want though, so that's weirdsilly-queen-7197
04/29/2024, 9:25 PMsilly-queen-7197
04/29/2024, 9:25 PMwide-midnight-78598
04/29/2024, 9:29 PMpackage_json
having a namesilly-queen-7197
04/29/2024, 9:40 PMpackage.json
it goes awaysilly-queen-7197
04/29/2024, 9:42 PMsilly-queen-7197
04/29/2024, 9:42 PMsilly-queen-7197
04/29/2024, 9:42 PMwide-midnight-78598
04/29/2024, 9:53 PMwide-midnight-78598
04/29/2024, 9:53 PMwide-midnight-78598
04/29/2024, 9:54 PMsilly-queen-7197
04/29/2024, 9:59 PMsilly-queen-7197
04/29/2024, 9:59 PMsilly-queen-7197
04/29/2024, 10:15 PMbroad-processor-92400
04/29/2024, 11:46 PMsilly-queen-7197
04/29/2024, 11:52 PM--print-stacktrace
. I'll keep that in the repertoire.wide-midnight-78598
04/30/2024, 12:04 AMpackage_json.py
under the parser: https://github.com/pantsbuild/pants/blob/954f57b2d78462fd9c687662924dd3616972410f/src/python/pants/backend/javascript/package_json.py#L688
The surprising part is that name
is optional in package.json files
Edit: It's not surprising that name
is optional, rather that we use an optional key in Pants