Skip to content

Fix templates pointing to non-existent Wasm binaries - #88

Merged
karthik2804 merged 1 commit into
spinframework:mainfrom
thorstenhans:fix/templates
Nov 20, 2026
Merged

karthik2804 merged 1 commit into
spinframework:mainfrom
thorstenhans:fix/templates

Conversation

@thorstenhans

Copy link
Copy Markdown
Contributor

Fixes #86

Problem

All templates (sandbox-ts, sandbox-py, sandbox-app) and their spin add snippets referenced https://github.com/fermyon/spin-sandboxes/releases/download/v0.1.0/*.wasm with placeholder sha256:0000… digests. That repo and release don't exist, so every generated app failed on spin up.

Changes

  • Repin all template and snippet source URLs to the canary pre-release of spinframework/spin-code-sandbox, with real digests. These were produced by scripts/update-template-refs.sh canary and match checksums-canary.txt.
  • scripts/update-template-refs.sh now defaults to spinframework/spin-code-sandbox.
  • templates/README.md and templates/sandbox-app/content/README.md link to the new repo. The "Placeholders" section now explains the canary pin.

Testing

  • Installed the templates from this branch in an isolated HOME with Spin 4.2.6.
  • spin new with sandbox-ts, sandbox-py and sandbox-app: Spin downloaded all components, verified their digests, and spin up served each app.
  • spin add -t sandbox-ts and spin add -t sandbox-py into an existing app: same result.

Known limitation

canary is a rolling release. Each Release workflow run rebuilds its assets and changes the digests, so this pin breaks on the next canary run. The current canary was also built from b23b72b, which predates the SIP egress changes in #80. Generated apps therefore get the older egress behaviour until canary is rebuilt and the pin is refreshed. The stable fix is to tag v0.1.0 and run scripts/update-template-refs.sh v0.1.0.

The templates referenced a v0.1.0 release of fermyon/spin-sandboxes
  that does not exist, with all-zero placeholder digests, so `spin up`
  on any generated app failed.

  Repin every template and snippet to the canary prerelease of
  spinframework/spin-code-sandbox with its real sha256 digests. Update
  the update-template-refs.sh default repo and the template docs to
  match.

Fixes spinframework#86

Signed-off-by: Thorsten Hans <thans@akamai.com>

@karthik2804 karthik2804 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lgtm until we cut a 0.1 tag.

@karthik2804
karthik2804 merged commit be65051 into spinframework:main Nov 20, 2026
4 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.

[templates]: Templates currently point to non-existing Wasm binaries

2 participants