Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to link to two target components that use different interfaces but the same namespace and package #514

Open
LUK3ARK opened this issue Dec 11, 2024 · 1 comment

Comments

@LUK3ARK
Copy link
Contributor

LUK3ARK commented Dec 11, 2024

If i have 2 separate links from a component, with one needing to target a provider and one needing to target a component, Wadm only ever loads the first link and not the second. if i remove the first link, the second gets loaded. I am unable to get both loaded at the same time

- name: my-component
  type: component
  traits:
    - type: link
      properties:
        target: data-component
        namespace: acme
        package: storage    # Same namespace/package
        interfaces: ["cache"]
    - type: link
      properties:
        target: data-provider
        namespace: acme
        package: storage    # Same namespace/package
        interfaces: ["query", "read", "other-interface"]  # Different interface

I expect when i run 'wash get links' to see both of these links, But only the first in the wadm file ever gets linked

wash v0.36.1
├ nats-server v2.10.20
├ wadm v0.18.0
└ wasmcloud v1.4.0

@Vikrantpalle
Copy link
Contributor

I think this is because links having the same (name, namespace, package) triplet with different targets are not supported currently. Looks like this issue is related to wasmCloud/wasmCloud#3801.

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

No branches or pull requests

2 participants