Skip to content

fix(mod-store): rename zima_cron entry to cron (install returns 404) - #20

Open
chicohaager wants to merge 1 commit into
IceWhaleTech:mainfrom
chicohaager:fix-cron-module-name
Open

chicohaager wants to merge 1 commit into
IceWhaleTech:mainfrom
chicohaager:fix-cron-module-name

Conversation

@chicohaager

Copy link
Copy Markdown

Problem

zpkg install zima_cron fails on ZimaOS v1.8.0-beta1:

Failed to install module:  bad response code: 404

For a repo entry, zpkg downloads <name>.raw from the latest release. The module ships as cron.raw and its image carries extension-release.cron (already in v0.2.0), so the entry zima_cron resolves to a file that does not exist:

URL (curl -L) Result
https://github.com/chicohaager/cron/releases/latest/download/zima_cron.raw 404
https://github.com/chicohaager/cron/releases/latest/download/cron.raw 200, 3,031,040 bytes

Fix

Rename the entry to cron (name and title). The same repository listed under "name": "cron" in a second catalogue (modstore = in mod-management.conf) installs cleanly on v1.8.0-beta1: install success, the SHA-256 of the downloaded image equals the release's cron.raw.sha256, and the service starts.

Adding a zima_cron.raw asset instead would not work, because the file name must match the extension-release name inside the image. Existing installations already carry the module name cron, so nothing installed is renamed by this change.

🤖 Generated with Claude Code

zpkg fetches <name>.raw from the latest release of a repo entry.
The module ships as cron.raw with extension-release.cron (already in
v0.2.0), so the entry zima_cron resolves to
releases/latest/download/zima_cron.raw -> 404 and
'zpkg install zima_cron' fails with 'bad response code: 404'
(measured on ZimaOS v1.8.0-beta1). Under the name cron the same
repo installs cleanly (sha256 matches the release's cron.raw.sha256).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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