Skip to content

[FEATURE] Support installation from git repositories hosted over HTTP only #636

@arika0093

Description

@arika0093

Is your feature request related to a problem? Please describe.
Currently, installation from git sources hosted on private servers only supports HTTPS and SSH, excluding HTTP. This becomes an issue especially when the git hosting service within a corporate environment is only available over HTTP.
Specifically, the following error occurs:

$ apm --version
Agent Package Manager (APM) CLI version 0.8.11

$ apm install http://git.server.internal.com/user/repo
[*] Validating 1 package...
[x] http://git.server.internal.com/user/repo -- not accessible or doesn't exist -- run with --verbose for auth details
All packages failed validation. Nothing to install.

Describe the solution you'd like
Support for the HTTP protocol. I would like APM to support installation over HTTP, just as the regular git clone command does.
The installation command would ideally look like this:

$ apm install http://git.server.internal.com/user/repo

The apm.yml file would look something like this:

name: sample
version: 1.0.0
description: Sample package
author: Sample Author
dependencies:
    - microsoft/apm-sample-package
    # The simplest way to specify
    - http://git.server.internal.com/user/repo
    # Alternatively, it could be in the following format.
    - repo_url: user/repo
      host: git.server.internal.com
      protocol: http
      # If explicit specification is required
      allow_insecure: true  # Flag to allow HTTP

Describe alternatives you've considered
The current workaround is to first clone the HTTP-hosted git repository locally and then install from the local path using APM. However, this completely undermines the benefits of using APM.

Additional context
None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageNew issue, not yet reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions