Skip to content

Consolidate template versions#5228

Open
bfops wants to merge 7 commits into
masterfrom
bfops/consolidate-template-versions
Open

Consolidate template versions#5228
bfops wants to merge 7 commits into
masterfrom
bfops/consolidate-template-versions

Conversation

@bfops

@bfops bfops commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Description of Changes

It turns out that different templates have different behavior for whether they get a major+minor version constraint, a major+minor+patch version constraint, or, surprisingly, just a major version constraint. See #5229 for a bit more detail.

This PR brings them all in line to major+minor.

This fixes a bug where we could release a newer version of the server+CLI, but not the crates, and that would cause the CLI to initialize some templates to expect a version number that did not exist.

I am not 100% sure that this doesn't have surprise consequences, since this is a weird situation in the first place.

API and ABI breaking changes

None

Expected complexity level and risk

2

Testing

spot tests, but more importantly some template smoketests have been added to check that the version constraints are now major.minor on some representative templates.

@bfops bfops linked an issue Jun 4, 2026 that may be closed by this pull request
@bfops bfops marked this pull request as ready for review June 8, 2026 16:35

@jdetter jdetter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's flag to @rekhoff that this one might be a bit risky, we should spot check to make sure the templates still work after we release this. This has not been tested by me but I did a relatively thorough look through the code and the changes seem fine.

The merge conflicts here are trivial so I'm fine approving as well. Thanks @bfops 👍

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.

Bug: Inconsistent version deps between templates

2 participants