Skip to content

[BUG] Can no longer depend on other skills etc in the same repo #1140

@OskarKlintrot

Description

@OskarKlintrot

Describe the bug

I think that when #857 got fixed it broke referencing other skills as dependency (at least on ADO). I did the same as #857 (comment) (see Additional context down below).

To Reproduce
Steps to reproduce the behavior:

  1. Reference a package or skill (instructions seems to work) in apm.yaml as a dependency
  2. Run apm install

Expected behavior
Same as with 0.10.0, it just works.

Environment (please complete the following information):

  • Windows 11
  • APM Version: 0.12.1

Logs

> apm install dev.azure.com/<org>/tools/github-copilot-agent-skills/packages/<project>
[*] Created apm.yml
[*] Validating 1 package...
[+] dev.azure.com/<org>/tools/github-copilot-agent-skills/packages/<project>
[*] Updated apm.yml with 1 new package(s)
[>] Installing 1 new package...
[>] Resolving github-copilot-agent-skills-<project>...
[>] Resolving github-copilot-agent-skills-csharp...
[>] Resolving github-copilot-agent-skills-testing...
[>] Resolving github-copilot-agent-skills-run-coverage...
  [+] dev.azure.com/<org>/tools/github-copilot-agent-skills/packages/<project> @0a3ba4ab
  |-- (files unchanged)
  [+] dev.azure.com/<org>/tools/github-copilot-agent-skills/.apm/instructions/testing.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
[i] Trusting direct dependency MCP 'NuGet' from '<project>-skills'
+- MCP Servers (3)
|  + NuGet (already configured)
+- All servers up to date
  [!] 2 dependencies unpinned: <org>/tools/github-copilot-agent-skills -- add #tag or #sha to prevent drift
  [x] 2 packages failed:
    +- github-copilot-agent-skills-run-coverage -- Failed to resolve transitive dep <org>/tools/github-copilot-agent-skills (via github-copilot-agent-skills-<project> > github-copilot-agent-skills-run-coverage): Subdirectory
'.apm/skills/run-coverage' not found in repository
    +- github-copilot-agent-skills-csharp -- Failed to resolve transitive dep <org>/tools/github-copilot-agent-skills (via github-copilot-agent-skills-<project> > github-copilot-agent-skills-csharp): Subdirectory 'packages/csharp' not found
in repository
[!] Installed 2 APM dependencies in 13.0s with 2 error(s).

Additional context
apm.yml:

name: <project>-skills
version: 1.0.0
description: '<Project> skills and agent for GitHub Copilot.'
author: Oskar Klintrot
target: vscode
dependencies:
  apm:
  - dev.azure.com/<org>/tools/github-copilot-agent-skills/packages/csharp
  - dev.azure.com/<org>/tools/github-copilot-agent-skills/.apm/skills/run-coverage
  - dev.azure.com/<org>/tools/github-copilot-agent-skills/.apm/instructions/testing.instructions.md
  mcp:
  - name: NuGet
    registry: false
    transport: stdio
    command: dnx
    args:
    - NuGet.Mcp.Server
    - --source
    - https://api.nuget.org/v3/index.json
    - --yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions