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

Warn when [python-protobuf].runtime_dependencies needs to use new target generator syntax #14391

Merged

Conversation

Eric-Arellano
Copy link
Contributor

Warning looks like:

ERROR These options contain references to generated targets using the old macro syntax, and you need to manually update them to use the new target generator syntax. (Typically, these are set in pants.toml, but you may need to check CLI args or env vars https://www.pantsbuild.org/v2.10/docs/options)

  • [python-protobuf].runtime_dependencies: ['//:req -> //:reqs#req']
  • [flake8].source_plugins: ['//:req -> //:reqs#req']

Many thanks to @jyggen for pointing out this edge case!

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
…arget generator syntax

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
Comment on lines +222 to +225
check(python_thrift.runtime_dependencies, "[python-thrift].runtime_dependencies")
check(flake8.source_plugins, "[flake8].source_plugins")
check(pylint.source_plugins, "[pylint].source_plugins")
check(mypy.source_plugins, "[mypy].source_plugins")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unlikely that these options will have bad references, but it's cheap for us to check.

@Eric-Arellano Eric-Arellano enabled auto-merge (squash) February 7, 2022 20:34
@Eric-Arellano Eric-Arellano merged commit 21443cc into pantsbuild:main Feb 7, 2022
@Eric-Arellano Eric-Arellano deleted the pants-toml-address-check branch February 7, 2022 21:11
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.

None yet

2 participants