Skip to content

fix: write the build number as semantic version metadata on R2026b - #74

Merged
ehennestad merged 1 commit into
mainfrom
fix-r2026b-semantic-build-version
Oct 15, 2026
Merged

ehennestad merged 1 commit into
mainfrom
fix-r2026b-semantic-build-version

Conversation

@ehennestad

@ehennestad ehennestad commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

From R2026b, ToolboxOptions.ToolboxVersion must be a semantic version and rejects Major.Minor.Patch.Build (mpm:arguments:InvalidVersion). Earlier releases accept only that four-part form and reject Major.Minor.Patch+Build. packageToolbox adds a build number for its default "build" release type, so packaging failed on R2026b. This is what fails the three packageToolbox tests in TasksTest.

createToolboxOptions now writes a four-part version as Major.Minor.Patch+Build on R2026b and later, and passes the version through unchanged on earlier releases. The .mltbx file name turns + into _, so it keeps the form Name_v0_11_0_1.mltbx on every release. Contents.m keeps the four-part version.

The R2026a and R2026b behaviour was observed in a probe run in github-actions-sandbox. MathWorks documents the change under "R2026b: ToolboxVersion must adhere to semantic version syntax" on the matlab.addons.toolbox.ToolboxOptions page.

The SetupTest tests also fail on R2026b, for a separate reason fixed in #73.

🤖 Generated with Claude Code

From R2026b, ToolboxOptions.ToolboxVersion must be a semantic version
and rejects Major.Minor.Patch.Build (mpm:arguments:InvalidVersion).
Earlier releases accept only that four-part form and reject
Major.Minor.Patch+Build. packageToolbox adds a build number for the
default "build" release type, so packaging failed on R2026b.

createToolboxOptions now writes a four-part version as
Major.Minor.Patch+Build on R2026b and later. The .mltbx file name
turns "+" into "_", so it keeps the same form on every release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

34 tests   31 ✅  30s ⏱️
 6 suites   0 💤
 1 files     3 ❌

For more details on these failures, see this check.

Results for commit 6a84255.

♻️ This comment has been updated with latest results.

@ehennestad
ehennestad merged commit fb32f97 into main Oct 15, 2026
3 of 6 checks passed
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.

1 participant