Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown flag --python-repos-repos on global scope with older Pants versions #321

Open
thejcannon opened this issue Nov 7, 2023 · 7 comments

Comments

@thejcannon
Copy link
Member

josh@cephandrius:~/work/splash$ cd $(mktemp -d)
josh@cephandrius:/tmp/tmp.MoI8b5oKpj$ touch pants.toml
josh@cephandrius:/tmp/tmp.MoI8b5oKpj$ touch BUILDROOT
josh@cephandrius:/tmp/tmp.MoI8b5oKpj$ PANTS_VERSION=2.0.2 pants --no-verify-config help-all
Unknown flag --python-repos-repos on global scope
Use `pants help` to get help.
10:38:18.20 [ERROR] Unknown flags --python-repos-repos on global scope

(Use --print-stacktrace to see more error details.)

Will test to see what version is "fixed"

@thejcannon
Copy link
Member Author

thejcannon commented Nov 7, 2023

Oddly... https://www.pantsbuild.org/v2.0/docs/reference-python-repos

So it might be some kind of options-parsing issue?

@thejcannon
Copy link
Member Author

thejcannon commented Nov 7, 2023

2.8.0 works, 2.7.2 doesn't

@thejcannon
Copy link
Member Author

This may be moot, as we're soon going to remove PANTS_SHA support (likely in tandem with the 2.18 Pants release).

thejcannon added a commit to pantsbuild/pantsbuild.org that referenced this issue Jan 2, 2024
This changed fixes
#29 by:
- Checking in the `help-all.json` for every version, under the
`reference` directory
- Adjust the sync docs CI and generation scripts to handle this change

---

<details>
<summary>Script to generate these versions</summary>

(Note `/home/josh/work/scie-pants/dist/scie-pants-linux-x86_64` contains
a temporary fix for pantsbuild/scie-pants#321)

```bash
#!/bin/bash -x
set -e

HERE=$PWD
cd $(mktemp -d)
touch pants.toml
touch BUILDROOT

# @todo: The Pants launcher dies pre 2.8: pantsbuild/scie-pants#321

export PANTS_NO_VERIFY_CONFIG=true
export PANTS_BACKEND_PACKAGES=[]

PANTS_VERSION=2.0.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.awslambda.python"\
    ]' \
    help-all > "$HERE/2.0.x.help-all.json"

PANTS_VERSION=2.1.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.awslambda.python"\
    ]' \
    help-all > "$HERE/2.1.x.help-all.json"

PANTS_VERSION=2.2.4 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
    ]' \
    help-all > "$HERE/2.2.x.help-all.json"

PANTS_VERSION=2.3.3 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
    ]' \
    help-all > "$HERE/2.3.x.help-all.json"

PANTS_VERSION=2.4.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
    ]' \
    help-all > "$HERE/2.4.x.help-all.json"

PANTS_VERSION=2.5.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
    ]' \
    help-all > "$HERE/2.5.x.help-all.json"

PANTS_VERSION=2.6.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
    ]' \
    help-all > "$HERE/2.6.x.help-all.json"

PANTS_VERSION=2.7.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.python", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.docker", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.awslambda.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
    ]' \
    help-all > "$HERE/2.7.x.help-all.json"

PANTS_VERSION=2.8.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.experimental.docker", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.debug_goals", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.awslambda.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
    ]' \
    help-all > "$HERE/2.8.x.help-all.json"

PANTS_VERSION=2.9.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.experimental.docker", \
        "pants.backend.experimental.docker.lint.hadolint", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.9.x.help-all.json"

PANTS_VERSION=2.10.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.10.x.help-all.json"

PANTS_VERSION=2.11.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.11.x.help-all.json"

PANTS_VERSION=2.12.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.12.x.help-all.json"

PANTS_VERSION=2.13.1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.13.x.help-all.json"

PANTS_VERSION=2.14.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.14.x.help-all.json"

PANTS_VERSION=2.15.2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.autoflake", \
        "pants.backend.experimental.python.lint.pyupgrade", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
    ]' \
    help-all > "$HERE/2.15.x.help-all.json"

PANTS_VERSION=2.16.1rc4 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.adhoc", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.framework.stevedore", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.ruff", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.experimental.tools.yamllint", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.autoflake", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pydocstyle", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.pyupgrade", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.tools.preamble", \
    ]' \
    help-all > "$HERE/2.16.x.help-all.json"

PANTS_VERSION=2.17.1rc3 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.adhoc", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.framework.stevedore", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.ruff", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.experimental.tools.workunit_logger", \
        "pants.backend.experimental.tools.yamllint", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.autoflake", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pydocstyle", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.pyupgrade", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.tools.preamble", \
    ]' \
    help-all > "$HERE/2.17.x.help-all.json"

PANTS_VERSION=2.18.0rc5 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.adhoc", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.framework.stevedore", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.ruff", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.python.typecheck.pytype", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.experimental.tools.workunit_logger", \
        "pants.backend.experimental.tools.yamllint", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.autoflake", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pydocstyle", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.pyupgrade", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.tools.preamble", \
    ]' \
    help-all > "$HERE/2.18.x.help-all.json"


PANTS_VERSION=2.19.0rc1 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.adhoc", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.openapi_format", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.framework.stevedore", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.ruff", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.python.typecheck.pytype", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.experimental.tools.semgrep", \
        "pants.backend.experimental.tools.workunit_logger", \
        "pants.backend.experimental.tools.yamllint", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.autoflake", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pydocstyle", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.pyupgrade", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.tools.preamble", \
    ]' \
    help-all > "$HERE/2.19.x.help-all.json"

PANTS_VERSION=2.20.0.dev2 /home/josh/work/scie-pants/dist/scie-pants-linux-x86_64 \
    --backend-packages='[ \
        "pants.backend.build_files.fix.deprecations", \
        "pants.backend.build_files.fmt.black", \
        "pants.backend.build_files.fmt.buildifier", \
        "pants.backend.build_files.fmt.yapf", \
        "pants.backend.awslambda.python", \
        "pants.backend.codegen.protobuf.lint.buf", \
        "pants.backend.codegen.protobuf.python", \
        "pants.backend.codegen.thrift.apache.python", \
        "pants.backend.docker", \
        "pants.backend.docker.lint.hadolint", \
        "pants.backend.experimental.adhoc", \
        "pants.backend.experimental.codegen.protobuf.go", \
        "pants.backend.experimental.codegen.protobuf.java", \
        "pants.backend.experimental.codegen.protobuf.scala", \
        "pants.backend.experimental.go", \
        "pants.backend.experimental.helm", \
        "pants.backend.experimental.java", \
        "pants.backend.experimental.java.lint.google_java_format", \
        "pants.backend.experimental.kotlin", \
        "pants.backend.experimental.kotlin.lint.ktlint", \
        "pants.backend.experimental.openapi", \
        "pants.backend.experimental.openapi.lint.openapi_format", \
        "pants.backend.experimental.openapi.lint.spectral", \
        "pants.backend.experimental.python", \
        "pants.backend.experimental.python.framework.stevedore", \
        "pants.backend.experimental.python.lint.add_trailing_comma", \
        "pants.backend.experimental.python.lint.ruff", \
        "pants.backend.experimental.python.packaging.pyoxidizer", \
        "pants.backend.experimental.python.typecheck.pytype", \
        "pants.backend.experimental.scala", \
        "pants.backend.experimental.scala.lint.scalafmt", \
        "pants.backend.experimental.terraform", \
        "pants.backend.experimental.tools.semgrep", \
        "pants.backend.experimental.tools.workunit_logger", \
        "pants.backend.experimental.tools.yamllint", \
        "pants.backend.google_cloud_function.python", \
        "pants.backend.plugin_development", \
        "pants.backend.python", \
        "pants.backend.python.lint.autoflake", \
        "pants.backend.python.lint.bandit", \
        "pants.backend.python.lint.black", \
        "pants.backend.python.lint.docformatter", \
        "pants.backend.python.lint.flake8", \
        "pants.backend.python.lint.isort", \
        "pants.backend.python.lint.pydocstyle", \
        "pants.backend.python.lint.pylint", \
        "pants.backend.python.lint.pyupgrade", \
        "pants.backend.python.lint.yapf", \
        "pants.backend.python.mixed_interpreter_constraints", \
        "pants.backend.python.typecheck.mypy", \
        "pants.backend.shell", \
        "pants.backend.shell.lint.shellcheck", \
        "pants.backend.shell.lint.shfmt", \
        "pants.backend.tools.preamble", \
    ]' \
    help-all > "$HERE/2.20.x.help-all.json"
```
</details>
@kaos
Copy link
Member

kaos commented Feb 14, 2024

This may be moot, as we're soon going to remove PANTS_SHA support (likely in tandem with the 2.18 Pants release).

How is this related to the PANTS_SHA support?

@thejcannon
Copy link
Member Author

Yeah, I don't remember...

@kaos
Copy link
Member

kaos commented Feb 14, 2024

why are there so limited emoji reactions.. I wanted a 😢 one..

@huonw
Copy link
Contributor

huonw commented Feb 29, 2024

I suspect the discussion may've moved on with the changes in #351, but the code that adds this argument explicitly calls out PANTS_SHA:

def pants_find_links_option(self, pants_version_selected: Version) -> str:
# We only want to add the find-links repo for PANTS_SHA invocations so that plugins can
# resolve Pants the only place it can be found in that case - our ~private
# binaries.pantsbuild.org S3 find-links bucket.
operator = "-" if pants_version_selected == self.stable_version else "+"
option_name = (
"repos"
if self.stable_version in SpecifierSet("<2.14.0", prereleases=True)
else "find-links"
)
value = f"'{self.find_links}'" if self.find_links else ""
# we usually pass a no-op, e.g. --python-repos-find-links=-[], because this is only used for
# PANTS_SHA support that is now deprecated and will be removed
return f"--python-repos-{option_name}={operator}[{value}]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants