Skip to content

[BUG] or [QUESTION] Local dependencies in shared repository #1571

@tomdaniel-ae

Description

@tomdaniel-ae

Describe the bug
We have one repository for our organisation containing all apm packages:

apm/
    _shared/
        .apm/
        apm.yml
    frontend/
        .apm/
        apm.yml # REFERENCES _shared
    backend/
        .apm/
        apm.yml # REFERENCES _shared

When installing frontend/ or backend/ into one of our projects, we get an error because it's referencing a package in the same remote repository:

Refusing to install local_path dependency './_shared' declared by remote package 'development-backend-dotnet': remote packages cannot reference paths on the consumer filesystem. Publish the dependency as a standalone package and reference it via owner/repo or marketplace handle.

To Reproduce
Steps to reproduce the behavior:

  1. Create two .apm folders (e.g. _shared/ and frontend/)
  2. Make sure one apm.yml references the other:
depdendencies:
  apm:
    - path: ./_shared
  1. Install the frontend/ folder with apm install dev.azure.com/org/project/repo/apm/frontend
  2. See the error in the terminal (mentioned above)

Expected behavior
I would expect the _shared/ apm package to be installed as well from that same remote repository.

Environment (please complete the following information):

  • OS: Windows
  • Python Version: 3.14.3
  • APM Version: 0.16.0
  • GIT Platform: Azure DevOps

Additional context
Is this expected behaviour or a bug?

If this is expected behaviour, can there be a section explaining how to achieve a setup like this? Since I can't find a clear explanation for how to set this up (besides using plugins and a complex setup to make this work).

Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionInstallers (curl/PowerShell/Brew/Scoop), self-update, devcontainer, codespaces.area/enterpriseAir-gapped/GHE configurability, registry proxy, rulesets, adoption playbook.status/acceptedDirection approved, safe to start work.status/needs-designDirection approved, design discussion required before code.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/bugSomething does not work as documented.type/featureNew capability, new flag, new primitive.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions