quaint-telephone-89068
01/30/2023, 7:11 AMpants*.toml files. I intend to produce and publish these schema files to the store on every stable release. This improves the devX for users who are new to Pants and are exploring it as the tooling helps them editing the pants.toml. Of course anyone else who is on a stable Pants version benefits from this as well.
However, there is a group of users that may benefit from having a locally generated schema file:
• users that are on unstable release (some options may be renamed/added/removed)
• users that have lots of plugins and options (they wouldn't have any autocomplete for the plugins' options)
• users that have access to the schema store blocked (and not having an ability to download an external resource)
To keep up with the latest representation of the options landscape, these users may want to generate the schema file locally. For this, extending the help goal would make sense.
Describe the solution you'd like
There should be a way to call a Pants goal that would generate a new .json schema (for the pants*.toml files) that could be used in an IDE that supports JSON schemas.
Describe alternatives you've considered
Documenting how to produce a schema file locally using existing build-support tooling without adding a goal. This is currently a two step action which involves calling the help-all goal and then munging the JSON output.
pantsbuild/pants