Skip to content

ensure semver for examples#670

Merged
yoshuawuyts merged 3 commits into
microsoft:mainfrom
yoshuawuyts:strip-version-prefixes-on-publish
Jun 1, 2026
Merged

ensure semver for examples#670
yoshuawuyts merged 3 commits into
microsoft:mainfrom
yoshuawuyts:strip-version-prefixes-on-publish

Conversation

@yoshuawuyts
Copy link
Copy Markdown
Member

Fixes #669, making our example components compatible with upcoming registry tooling and future composition tooling. Thanks!

@yoshuawuyts
Copy link
Copy Markdown
Member Author

yoshuawuyts commented Apr 25, 2026

It looks like CI is failing but I don't think it's because of this PR. For example:

error: failed to parse lock file at: /build/source/Cargo.lock

Caused by:
package wasm-metadata is specified twice in the lockfile

That's an issue where Nix's dependency model apparently requires a diamond dependency graph, which is incompatible with Rust's dependency model which resolves that by duplicating dependencies. I think that means that CI on the main branch is currently not passing.

cc/ @Mossaka

@yoshuawuyts yoshuawuyts force-pushed the strip-version-prefixes-on-publish branch from aa8c404 to 940ff84 Compare June 1, 2026 02:00
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@2a21329). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #670   +/-   ##
=======================================
  Coverage        ?   87.05%           
=======================================
  Files           ?       30           
  Lines           ?    10855           
  Branches        ?        0           
=======================================
  Hits            ?     9450           
  Misses          ?     1405           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 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.

yoshuawuyts and others added 2 commits June 1, 2026 14:59
Each example's WIT `world` and `package` declaration is renamed to match
its published component name (its directory) under the `microsoft`
namespace, e.g. `package component:fetch-rs; world fetch;` becomes
`package microsoft:fetch-rs; world fetch-rs;`.

Updates the eval-py and gomodule-go build configs that select the world
by name, the gomodule-go Go import path and generated bindings, and
regenerates the context7-rs bindings (the only example exporting an
interface, where the package name is part of the published API).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The unpinned `cargo install mdbook-tabs` started resolving to 1.0.x,
which requires mdBook 0.5 and fails against the 0.4 binary used here
("missing field items" / "unknown field multilingual"). Pin mdbook-tabs
to the last 0.4-compatible release (0.2.3) and bump the mdBook binary to
0.4.52. Verified locally that this combination builds the book cleanly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@yoshuawuyts yoshuawuyts merged commit a261198 into microsoft:main Jun 1, 2026
15 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.

[Bug]: published OCI images should use semver tags

3 participants