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

Deprecate generate-user-lockfile and [python].experimental_lockfile in favor of [python].experimental_resolves #14288

Merged
merged 4 commits into from Jan 28, 2022

Conversation

Eric-Arellano
Copy link
Contributor

Turns out that Pants only needs a single resolve. Our testprojects resolve wasn't actually used by anything. (We could always add this back for testing purposes.)

So, thanks to #14287, we can use [python].experimental_resolves just like [python].experimental_lockfile was being used: the feature currently supports a single resolve.

Benefits to this change:

  1. Lockfile is now generated via generate-lockfiles rather than generate-user-lockfiles
  2. Less confusing code for us to deal with. Now we just have constraints files vs. resolves

This is possible because apparently we only have one resolve

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]
…e` in favor of `[python].experimental_resolves`

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

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Awesome!

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano enabled auto-merge (squash) January 28, 2022 13:28
@Eric-Arellano Eric-Arellano merged commit c890ec1 into pantsbuild:main Jan 28, 2022
@Eric-Arellano Eric-Arellano deleted the rm-experimental-lockfile branch January 28, 2022 14:33
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