composer / satis

Simple static Composer repository generator - For a full private Composer repo use Private Packagist
MIT License
3.15k stars 519 forks source link

Partial build fails with "Repository url do not exist" #921

Closed onspli closed 2 months ago

onspli commented 2 months ago

Describe the bug Trying to do partial build of repository of type "package" (as described on composer docs) results in error.

To Reproduce satis.json

{
  "name": "onspli/satis-test-repo",
  "homepage": "http://packages.example.org",
  "output-dir": "output",
  "repositories": [
    {
      "type": "package",
      "package": [
        {
          "version": "dev-main",
          "name": "onspli/composer-test-package",
          "source": {
            "url": "git@github.com:composer/satis.git",
            "type": "git",
            "reference": "dev-main"
          }
        }
      ]
    }
  ]
}

execute

$ php satis.phar build --repository-url git@github.com:composer/satis.git

Outcome

In PackageSelection.php line 185:

  Specified repository URL(s) "git@github.com:composer/satis.git" do not exist.

Expected behavior Successful update of onspli/composer-test-package@dev-main.