fix: keep generated SDK version files aligned#587
Merged
rodolphe-bejot merged 1 commit intoJul 3, 2026
Conversation
Contributor
|
@rodolphe-bejot but why did it work before ? |
Contributor
Author
Not sure |
louis-sanna-dev
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes the stale generated SDK version state that blocks the next Speakeasy Python SDK generation.
client-python#580updatedpyproject.tomland.speakeasy/gen.lockto2.5.1, butsrc/mistralai/client/_version.pystayed at2.5.0. That left the repository inconsistent:The SDK can still work at runtime because
_version.pyfalls back to installed package metadata, but Speakeasy tracks this file as generated state. On the next generation, it expected the previous generated_version.pyto be2.5.1and the new generated value to be2.5.2, while the repo still had2.5.0, so persistent edit merge failed with a conflict.Changes
src/mistralai/client/_version.pywith the current generated release version,2.5.1.Generate MISTRALAIworkflow'salign-versionjob so it also aligns and stagessrc/mistralai/client/_version.pytogether withpyproject.tomlanduv.lock.Validation
python -m py_compile src/mistralai/client/_version.pybash -ngit diff --checkFollow-up
After this is merged, rerun the failed Python SDK generation workflow from a clean Speakeasy branch. Do not pre-create the
speakeasy/...branch, because Speakeasy rejects auto branches containing manual commits.