Python and Go are used by the gen-doc target.

Code changes can break these, hence it is part of `ant check`.
It is not called by `ant jar`

If you want to run check but skip it, it's to add `-Dant.gen-doc.skip=true`



On Wed, 23 Apr 2025 at 22:06, Alex Petrov <al...@coffeenco.de> wrote:

> Hi folks,
>
> Building Cassandra jar has been getting increasingly slow, and now it
> looks like we depend not only on python3 (which was already not optimal),
> but also on go:
>
>     ant -Dno-checkstyle=true
>
> ...
>
>      [exec] python3 ./scripts/gen-nodetool-docs.py
>      [exec] python3 ./scripts/convert_yaml_to_adoc.py
> ../conf/cassandra.yaml
> ./modules/cassandra/pages/managing/configuration/cass_yaml_file.adoc
>      [exec] ./scripts/process-native-protocol-specs-in-docker.sh
>      [exec] Go env not found in your system, proceeding with installation.
>      [exec] Downloading Go 1.23.1...
>      [exec] Installing Go 1.23.1...
>      [exec] Building the cqlprotodoc...
>      [exec] Cloning into 'cassandra-website'...
>      [exec] Your branch is up to date with 'origin/trunk'.
>      [exec] go: downloading github.com/mvdan/xurls v1.1.0
>      [exec] Processing the .spec files...
>
> I personally consider this extremely dangerous, but also unnecessary. My
> current stance is that functionality introducing python3 and go should be
> moved to a separate task that only runs on demand / ci / release.  I
> welcome convincing arguments that would suggest otherwise.
>
> If you agree we should not require python and go to run `ant
> -Dno-checkstyle=true`, please also write a short message, this will be very
> helpful as well.
>
> Thank you,
> --Alex
>

Reply via email to