Skip to content

apm install: FQDN monorepo subpath on GHES fails; hoping for CLI-only install without manual apm.yml edit #1673

@KomTak001

Description

@KomTak001

Summary

On our private GHES host, we would like to install an APM package from a monorepo subpath with apm install <ref> only — similar to GitHub:

apm install github/awesome-copilot/skills/review-and-refactor --target copilot

We confirmed that the same style of command works on github.com.

On GHES, the equivalent command does not seem to work for us.

Reproduction

  • Host: ghe.example.com
  • Repo: my-org/agent-skills-monorepo
  • Package path: packages/skill-alpha
apm install "ghe.example.com/my-org/agent-skills-monorepo/packages/skill-alpha"
[x] ghe.example.com/my-org/agent-skills-monorepo/packages/skill-alpha -- not accessible or doesn't exist

With --verbose, git ls-remote appears to target a URL that includes the subpath:

fatal: repository 'https://ghe.example.com/my-org/agent-skills-monorepo.git/packages/skill-alpha/' not found

The same result with an HTTPS URL that embeds the subpath:

apm install "https://ghe.example.com/my-org/agent-skills-monorepo.git/packages/skill-alpha"

Repo root without subpath validates, but installs the wrong manifest (bundle with local path: deps):

apm install --dry-run "ghe.example.com/my-org/agent-skills-monorepo"

What we hoped for

apm install ghe.example.com/my-org/agent-skills-monorepo/packages/skill-alpha

…would update apm.yml and install packages/skill-alpha, e.g.:

dependencies:
  apm:
    - git: "https://ghe.example.com/my-org/agent-skills-monorepo.git"
      path: packages/skill-alpha
      ref: main

If FQDN shorthand is hard to support on GHES, CLI flags such as --git / --path / --ref would also help.

Workaround we use today

We add object form to apm.yml manually, then run apm install. This works, but we were hoping to avoid editing apm.yml by hand.

Environment

  • OS: macOS
  • APM version: 0.18.0
  • Auth: gh auth login --hostname ghe.example.com (HTTPS clone works)

Related

Suggestion

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionInstallers (curl/PowerShell/Brew/Scoop), self-update, devcontainer, codespaces.area/docs-sitedocs/src/content (Starlight), README, doc generation.area/enterpriseAir-gapped/GHE configurability, registry proxy, rulesets, adoption playbook.priority/highShips in current or next milestonestatus/acceptedDirection approved, safe to start work.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

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions