Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 24, 2025

Injects namespace registry configuration into ~/.wash/package_config.toml before wash build to enable proper resolution of wasmCloud interface packages.

Changes

  • Added step to create ~/.wash/package_config.toml with namespace registry configuration
  • Maps wasmcloud namespace to wasmcloud.com registry via OCI protocol with ghcr.io/wasmcloud/interfaces/ prefix
  • Positioned before wash build step in the build job
  • Marked with TODO to remove once Error fetching WIT dependencies during wash build wash#210 is resolved
# TODO: Remove this step once https://github.com/wasmcloud/wash/issues/210 is resolved
- name: Configure wash package registry
  run: |
    mkdir -p ~/.wash
    cat > ~/.wash/package_config.toml << 'EOF'
    [namespace_registries]
    "wasmcloud" = { registry = "wasmcloud.com", metadata = { preferredProtocol = "oci", "oci" = { registry = "ghcr.io", namespacePrefix = "wasmcloud/interfaces/" } } }
    EOF
Original prompt

On examples_component.yml, Insert a step before the wash build step in the examples_component.yml workflow that injects the following contents into the ~/.wash/package_config.toml file:

[namespace_registries]
"wasmcloud.com" = { registry = "wasmcloud.com", metadata = { preferredProtocol = "oci", "oci" = { registry = "ghcr.io", namespacePrefix = "wasmcloud/interfaces/" } } }

Add a comment above this new step saying to remove once the github.com/wasmCloud/wash#210 is resolved


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: lachieh <1687902+lachieh@users.noreply.github.com>
Copilot AI changed the title [WIP] Insert step to inject contents into package_config.toml Add wash package registry configuration step to examples_component workflow Dec 24, 2025
Copilot AI requested a review from lachieh December 24, 2025 14:59
Copy link
Contributor

@lachieh lachieh left a comment

Choose a reason for hiding this comment

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

Comment on lines 98 to 100
[namespace_registries]
"wasmcloud.com" = { registry = "wasmcloud.com", metadata = { preferredProtocol = "oci", "oci" = { registry = "ghcr.io", namespacePrefix = "wasmcloud/interfaces/" } } }
EOF
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot make this change

Suggested change
[namespace_registries]
"wasmcloud.com" = { registry = "wasmcloud.com", metadata = { preferredProtocol = "oci", "oci" = { registry = "ghcr.io", namespacePrefix = "wasmcloud/interfaces/" } } }
EOF
[namespace_registries]
"wasmcloud" = { registry = "wasmcloud.com", metadata = { preferredProtocol = "oci", "oci" = { registry = "ghcr.io", namespacePrefix = "wasmcloud/interfaces/" } } }
EOF

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 2e660ae

Co-authored-by: lachieh <1687902+lachieh@users.noreply.github.com>
Copilot AI requested a review from lachieh December 24, 2025 15:15
@lachieh lachieh marked this pull request as ready for review December 24, 2025 15:16
@lachieh lachieh requested a review from a team as a code owner December 24, 2025 15:16
@lachieh lachieh enabled auto-merge (rebase) December 24, 2025 15:16
@lachieh lachieh requested review from a team and vados-cosmonic December 24, 2025 15:17
@lachieh
Copy link
Contributor

lachieh commented Dec 24, 2025

@vados-cosmonic can you take a look at this one? CI is failing because the registry config change and until the interfaces are mirrored to the new config, this overrides the config fetched from https://wasmcloud.com/.well-known/wasm-pkg/registry.json

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]: http-password-checker example failing CI build

2 participants