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.
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:
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 clonecommand does.The installation command would ideally look like this:
The apm.yml file would look something like this:
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.