Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repositories options/header dropped in parallel execution #141

Open
luceos opened this issue Apr 11, 2017 · 1 comment
Open

Repositories options/header dropped in parallel execution #141

luceos opened this issue Apr 11, 2017 · 1 comment

Comments

@luceos
Copy link

luceos commented Apr 11, 2017

When having this amazing package enabled, whenever you configure a header to be sent along (eg for custom satis installations requiring authorization) the requests fail because the options/headers aren't sent along to the ComposerRepository during Parallel execution.

 Composer\Repository\ComposerRepository->loadRootServerFile() at /Users/luceos/.composer/vendor/hirak/prestissimo/src/ParallelizedComposerRepository.php:39

Example repositories configuration:

  "repositories": {
    "satis": {
      "type": "composer",
      "url": "http://local.dev/api/satis",
      "options": {
        "http": {
          "header": [
            "Authorization: Bearer <token>"
          ]
        }
      }
    }
@hirak
Copy link
Owner

hirak commented May 27, 2017

This is a difficult problem. A composer plugin cannot know options of repositories.
Ummmmm....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants