Skip to content

mcpp publish leaves path dependencies in [feature-deps.*] and in a key that starts with the package's own name #962

Done

Description

@Sunrisepeak

mcpp 2026.11.18.1 (the latest), Linux x64.

mcpp publish --dry-run rewrites a member's [dependencies] on other members from path to their versions, but in the archive's mcpp.toml these stay path dependencies:

  1. Every entry of a [feature-deps.<feature>] table. From three members' archives:
    [feature-deps.hanim]
    hanim = { default-features = false, features = ["engine", "render-vector"], path = "../../hanim" }
    
    [feature-deps.design]
    omui = { designer = { path = "../../designer" } }
    
    [feature-deps.agent]
    mlibs = { agent = { path = "../../base/agent" }, json = { path = "../../base/json" }, utils = { path = "../../base/utils" } }
  2. A dependency whose first key is the package's own name — package hanim depending on its member hanim.core:
    # source
    [dependencies]
    hanim.core = { path = "core" }
    # archive
    [dependencies]
    hanim = { core = { path = "core" } }
    (mcpp.toml.orig in the archive has the source form.)

A consumer of the published packages then fails, e.g.:

error: dependency 'hanim.core' is requested as both a version dep (by 'omui.theme@0.1.0') and a path dep (by 'hanim@0.1.0'). Pick one.

Expected: in a published manifest every dependency on another member is its version, in [feature-deps.*] as in [dependencies], including members whose identity begins with the package's own name. (Dev-dependencies keeping paths is harmless.)

Found while building a new project from a local stand-in index before a first publish; it follows #960 and the descriptor issue filed with it.

Activity

  1. speak-agent commented on Nov 27, 2026

    @speak-agent
    Member

    Fixed in mcpp 2026.11.27.1 (#1023). The loader, the editor and publish walk one enumeration of dependency tables, so a path dependency in [feature-deps.*], and a member inside the package directory, are published by version.

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