Skip to content

feat: name the packaged mltbx from MltbxFileName in MLToolboxInfo.json - #80

Merged
ehennestad merged 3 commits into
mainfrom
add-mltbx-file-name-option
Nov 4, 2026
Merged

ehennestad merged 3 commits into
mainfrom
add-mltbx-file-name-option

Conversation

@ehennestad

Copy link
Copy Markdown
Owner

createToolboxOptions names the packaged toolbox <ToolboxName>_v<version>.mltbx, so every release asset has a different file name and there is no stable download link for the latest release.

This adds an optional top-level MltbxFileName field to MLToolboxInfo.json. When it is set and non-empty, it is used as the file name, with .mltbx appended if missing, and it takes precedence over the ToolboxShortName option. A name that contains / or \ raises MatBox:Package:InvalidMltbxFileName, because the file is always written to releases/. When the field is absent or empty, the name is built as before.

With a fixed name, the latest release can be downloaded from https://github.com/<owner>/<repo>/releases/latest/download/<MltbxFileName>.mltbx.

The matbox-actions workflows need no change: the release, codemeta and verification steps all read the file name from mltbx_path.

Docs: README packaging section, docs/ci.md and the packageToolbox help text describe the field.

🤖 Generated with Claude Code

A non-empty top-level MltbxFileName field in MLToolboxInfo.json sets
the file name of the packaged toolbox, with ".mltbx" appended when it
is missing. It takes precedence over ToolboxShortName. Without the
field the name stays <ToolboxName>_v<version>.mltbx.

A fixed name lets the latest release be downloaded from a stable
releases/latest/download/<name>.mltbx link.

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

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

111 tests   110 ✅  34s ⏱️
  7 suites    1 💤
  1 files      0 ❌

Results for commit ac6952c.

♻️ This comment has been updated with latest results.

@ehennestad
ehennestad enabled auto-merge (squash) November 4, 2026 09:55
@ehennestad
ehennestad merged commit 19bb09b into main Nov 4, 2026
6 checks passed
@ehennestad
ehennestad deleted the add-mltbx-file-name-option branch November 4, 2026 09:58
@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.31%. Comparing base (9917487) to head (ac6952c).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   57.08%   57.31%   +0.22%     
==========================================
  Files          68       68              
  Lines        1820     1846      +26     
==========================================
+ Hits         1039     1058      +19     
- Misses        781      788       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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