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

Improve lockfile consumption error message. #18638

Merged
merged 2 commits into from Apr 1, 2023

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Mar 31, 2023

No description provided.

@benjyw benjyw added this to the 2.16.x milestone Mar 31, 2023
@benjyw benjyw requested a review from kaos March 31, 2023 20:12
@@ -474,18 +474,19 @@ def validate_metadata(
interpreter_constraints: InterpreterConstraints,
lockfile: Lockfile,
consumed_req_strings: Iterable[str],
validate_consumed_req_strings: bool,
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

We now always pass the req strings through so we can use them to give more context to the user in the error message, so we add this flag to determine whether we should validate them (previously we did this by not passing the req strings in)

@benjyw benjyw merged commit 7b5d872 into pantsbuild:main Apr 1, 2023
17 checks passed
@benjyw benjyw deleted the improve_error_msg branch April 1, 2023 22:08
benjyw added a commit to benjyw/pants that referenced this pull request Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants