Skip to content

try- is a reserved SDK name on refresh with a sdkcraft try'ed SDK #1065

Closed

Description

@saviq-work

Following https://ubuntu.com/workshop/docs/how-to/develop-sdks/build-an-sdk/#try-the-sdk

$ sdkcraft try ~mir/sdk/mir/[email protected]
Copied 'mir' SDK ([email protected]:amd64) to the try area.
To use it, add 'try-mir' to the SDK list in a workshop and run 'workshop refresh'.

$ workshop refresh
error: cannot refresh "dev": cannot refresh "dev": "try-mir:install" is not a valid plug or slot reference: "try-mir" is a reserved SDK name

Activity

  1. jonathan-conder commented on Oct 1, 2026

    @jonathan-conder
    Contributor

    where does try-mir:install come from? The SDK is still named mir, the try- prefix only goes in the name: field under sdks:

  2. saviq-work commented on Oct 1, 2026

    @saviq-work
    Author

    where does try-mir:install come from?

    Ah, that'd be the design-sdk skill that led me astray - feel free to close or transfer there.

    It generated this in the test:

    https://github.com/canonical/mir/blob/1c6f1a872fe28e19e3dd0c92a05a8a4c5d10d284/sdk/mir/tests/main/launch/workshop.yaml.in#L3-L8

    The SDK is still named mir, the try- prefix only goes in the name: field under sdks:

    ACK!

  3. jonathan-conder commented on Oct 1, 2026

    @jonathan-conder
    Contributor

    I don't think I can do the transfer, maybe @dmitry-lyfar can

  4. dmitry-lyfar commented on Oct 5, 2026

    @dmitry-lyfar
    Collaborator

    Sorry, am not sure what needs a transfer?

  5. jonathan-conder commented on Oct 5, 2026

    @jonathan-conder
    Contributor

    The design-sdk skill doesn't know about try-foo vs foo so it put try-foo under connections:

  6. jonathan-conder commented on Oct 5, 2026

    @jonathan-conder
    Contributor
  7. dmitry-lyfar commented on Oct 5, 2026

    @dmitry-lyfar
    Collaborator

    I think it does now, but the new version of the skill was extracted and consolidated as a separate repo.

  8. saviq-work commented on Oct 5, 2026

    @saviq-work
    Author

    I think it does now, but the new version of the skill was extracted and consolidated as a separate repo.

    FWIW I only just ran this last week and got this in a test:

    https://github.com/canonical/mir/blob/1c6f1a872fe28e19e3dd0c92a05a8a4c5d10d284/sdk/mir/tests/main/launch/workshop.yaml.in#L3-L8

    sdks:
      - name: try-mir
      - name: project-mir-consumer
    connections:
      - plug: project-mir-consumer:mir
        slot: try-mir:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions