Skip to content

[BUG] Forcing a url of ghe deny access to other github servers #113

@foutoucour

Description

@foutoucour

Describe the bug
When the server is set using the GITHUB_HOST environment variable, make github.com unreachable.

To Reproduce
Steps to reproduce the behavior:

  1. use a apm.yml file like
name: multiple-servers
version: 1.0.0
author: Jordi Riera
dependencies:
  apm:
  - git.corporate.com/rieraj/team-cot-agent-instructions
  - github/awesome-copilot/skills/review-and-refactor
  1. run apm install then you are advised to set git.corporate.com in GITHUB_HOST
  2. once the environment variable set, re-run apm install
⠦ Fetching review-and-refactor ━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  20%❌ Failed to install
git.corporate.com/github/awesome-copilot/skills/review-and-refactor: Failed to
clone repository: Failed to clone repository github/awesome-copilot using all
available methods. Please check repository access permissions and authentication
setup. Last error: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --depth=1 --
https://***@git.corporate.com/github/awesome-copilot.git
/var/folders/5z/39r9zcrn7b106_nh_yj2x4dw0000gp/T/tmptq8b1scb/repo
  stderr: 'Cloning into
'/var/folders/5z/39r9zcrn7b106_nh_yj2x4dw0000gp/T/tmptq8b1scb/repo'...
remote: Repository not found.
fatal: repository 'https://git.corporate.com/github/awesome-copilot.git/' not found
'

Expected behavior
I can have packages on different github servers

Environment (please complete the following information):

OS: macOS
Python Version: Python 3.12.12
APM Version: Agent Package Manager (APM) CLI version 0.7.3

Logs
If applicable, add any error logs or screenshots.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedDirection approved, safe to start workbugSomething isn't workingpriority/highShips in current or next milestone

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions