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

Centralise versioning configuration #176

Merged
merged 6 commits into from
Mar 12, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Mar 11, 2024

The goal here is to centralise the logic around versions, creating a list of all the details about each version (e.g. full version number, whether it's a pre-release or unmaintained etc.), that downstream processing can reference directly rather than recompute. This, for instance, eliminates the duplicated logic around which versions are maintained.

The goal here is to make changes like #174 (and maybe #159) easier. This PR doesn't/shouldn't change observable behaviour.

This also removes the explicit disableVersioning flag, since that seems to require changing the contents of the versions map. Instead the existing use of onlyIncludeVersions seems to do what's intended: make dev builds faster. An npm start build takes about 10s both with the old disableVersioning setting, or just relying on onlyIncludeVersions.

This includes some cut-and-paste rearrangement too that makes the diff harder to understand. The commits are individually reviewable.

@huonw huonw marked this pull request as ready for review March 11, 2024 02:59
@huonw huonw changed the title Refactor versioning configuration Centralise versioning configuration Mar 11, 2024
@huonw huonw merged commit 04263c1 into pantsbuild:main Mar 12, 2024
1 check passed
@huonw huonw deleted the huonw/refactor-version-info branch March 12, 2024 06:45
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.

2 participants