composer / composer/satis

Could we add an option to make use of a VCS platform built in archives?

Open
#347 5 comments 3 reactions 0 assignees View on GitHub
feature
Dominant language
PHP
Stars
3.3k
Forks
530
Avg merge
6h 53m
Merged PRs (30d)
13

Description

I've had this idea when using Satis together with some private repo's on a Bitbucket Server instance. Bitbucket Server has an archive API just like GitHub or Bitbucket.org.

I've been going through Composer's Vcs driver classes to see how Composer is generating dist URL's for packages hosted on GitHub or Bitbucket.org and it seemed to me we could do the very same with Satis (see for instance [dist URL generation](https://github.com/composer/composer/blob/master/src/Composer/Repository/Vcs/GitHubDriver.php#L133-L138) of the GitHub driver).

I would suggest to add an option to the `build` command to indicate to use archive API's where possible, so Satis will generate a `dist` section with a reference to the zip or tar of the package on the platform. When using it in combination with the `archive` option, local archives would still be generated for platforms that do not have/support an archive API.

Additionally it would be great to have a Bitbucket Server driver of course (or a possibility to hook in your own drivers).

I am aware that this issue/feature request is a duplicate of issue #196, but this one covers all VCS platforms that have an archive API, not only GitHub.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.