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

Remove GenerateToolLockfileSentinel #21225

Conversation

lilatomic
Copy link
Contributor

We now use ExportableTool instead of GenerateToolLockfileSentinel to export internal tools. This results in less boilerplate, a unifying of user and tool lockfiles, and overall less code.

This MR removes GenerateToolLockfileSentinel and its codepaths. Simplification!

@lilatomic lilatomic force-pushed the refactor/deprecate-GenerateToolLockfileSentinel branch from 2075258 to 5ede600 Compare July 28, 2024 22:46
@huonw
Copy link
Contributor

huonw commented Sep 11, 2024

We've just branched for 2.23, so merging this pull request now will come out in 2.24, please move the release notes updates to docs/notes/2.24.x.md. Thank you!

@cburroughs
Copy link
Contributor

I've tripped over the sentinel before so I'm exciting to see this. Would anything in particular help get it ready to land?

@lilatomic lilatomic force-pushed the refactor/deprecate-GenerateToolLockfileSentinel branch from 5ede600 to 604ba3c Compare September 15, 2024 17:49
@lilatomic
Copy link
Contributor Author

This MR removes it, It was already deprecated in #21222 . I was waiting for that one to land and then lost sight of this. We should be good to merge (especially since they're now split across major versions)

@lilatomic lilatomic marked this pull request as ready for review September 15, 2024 18:06
@cburroughs
Copy link
Contributor

Got it, thanks for doing this!

By simplifying the logic, we don't need to test for many cases:

- User and Tool lockfiles : all unified
- Tool shadowed by user ("Ambiguous"): happens in the language backend
@lilatomic lilatomic force-pushed the refactor/deprecate-GenerateToolLockfileSentinel branch from 3439e5d to 652bd2b Compare October 12, 2024 17:43
@lilatomic lilatomic merged commit 6afd222 into pantsbuild:main Oct 12, 2024
25 checks passed
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.

3 participants