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

Silence future-compatibility warnings in 2.16 #10

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Jul 18, 2023

Running Pants 2.16 in this repository has various warnings, and it causes breakage in 2.17. This fixes those warnings, and now DYNAMIC_TAG=1 PANTS_VERSION=2.17.0rc2 pants tailor --check update-build-files --check fix lint test package :: works.

Warnings:

08:57:03.06 [WARN] DEPRECATED: The autoflake plugin has moved to `pants.backend.python.lint.autoflake` (and from the `fmt` goal to the `fix` goal).

...

08:57:07.98 [WARN] DEPRECATED: the 'outputs' field is scheduled to be removed in version 2.17.0.dev0.

Using the `outputs` field in the target src/docker/hello_world:hello_msg. To fix, use `output_files` and `output_directories` instead.

...

08:57:12.38 [WARN] DEPRECATED: Using `dependencies` to specify execution-time dependencies for `shell_command`  is scheduled to be removed in version 2.17.0.dev0.

To clear this warning, use the `output_dependencies` and `execution_dependencies`fields. Set `execution_dependencies=()` if you have no execution-time dependencies.

This was detected by public repos tests runs like https://github.com/pantsbuild/pants/actions/runs/5592922948/jobs/10226005348

@huonw huonw merged commit 428d66d into pantsbuild:main Jul 19, 2023
2 checks passed
@huonw huonw deleted the bugfix/warnings branch July 19, 2023 21:49
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

Successfully merging this pull request may close these issues.

3 participants