composer / composer/satis

Alpha1 - Build return error "[UnexpectedValueException] Unknown package has no name defined"

Open
#602 1 comment 1 reaction 0 assignees View on GitHub
support
Dominant language
PHP
Stars
3.3k
Forks
530
Avg merge
6h 53m
Merged PRs (30d)
13

Description

Hi all
I've got this problem after (wrongly) run composer update

Quick recap
I had a working satis on an internal server that is still running php 5.4, that cannot be updated atm.
Yesterday I wrongly run composer update and of course satis was not working anymore.

I managed to recover the "old" composer.lock to run a composer install, but I started having the issue in subject.

I've tried to install a new satis environment using alpha1
`composer create-project composer/satis:1.0.0-alpha1`
and the same configuration-file used in the past (nothing changed in it)

I've found this https://github.com/composer/composer/pull/1899 but I can't relate it to my issue.
I'm almost sure that I'm missing something stupid, some dependencies that was updated, something using wrong/newer version, but I can't find what.
Does anyone have any clue ?

Tnx

Below the configuration-file and the composer.json from the fresh install
```
{
"name": "TEST",
"homepage": "https://test.test.it",

"repositories": [
{ "type": "vcs", "url": "https://git.test.it/plesk-git/my-package/"},
{ "type": "composer", "url": "https://packagist.org" }
],
"archive": {
"directory": "packages",
"format": "zip",
"prefix-url": "https://test.test.it",
},
"require": {
"test/my-package": "*"
},
"require-dependencies": false,
"config": {
"preferred-install": "dist"
}
}

```

```
{
"name": "composer/satis",
"description": "Simple Repository Generator",
"keywords": ["package", "repository", "generator"],
"homepage": "https://github.com/composer/satis",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be"
},
{
"name": "Nils Adermann",
"email": "naderman@naderman.de",
"homepage": "http://www.naderman.de"
}
],
"bin": ["bin/satis"],
"require": {
"php": ">=5.3.2",
"composer/composer": "1.0.*@dev",
"twig/twig": "~1.7",
"symfony/console": "~2.1"
},
"autoload": {
"psr-0": { "Composer\\Satis": "src/" }
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `composer create-project composer/satis:1.0.0-alpha1` and the supplied configuration file on the reported PHP 5.4 environment. Then inspect the fresh-install `composer.json` and recovered `composer.lock` to identify which package metadata triggers the `Unknown package has no name defined` exception. Done means the cause is isolated and the build completes with the existing configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.