-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
Description
I'm starting a private project that won't be published so doesn't have a name (nor a description); here's its composer.json (minimal for now):
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.2"
}
}It is valid for non-public use:
$ composer validate --no-check-publish
./composer.json is valid for simple usage with composer but has
strict errors that make it unable to be published as a package:
See https://getcomposer.org/doc/04-schema.md for details on the schema
name : The property name is required
description : The property description is required
$ echo $?
0but impossible to normalize as-is:
$ composer normalize
Original JSON is not valid according to schema "file:///home/gx/.composer/vendor/ergebnis/composer-normalize/src/../resource/schema.json".
./composer.json is valid for simple usage with composer but has
strict errors that make it unable to be published as a package:
See https://getcomposer.org/doc/04-schema.md for details on the schema
$ echo $?
0(note: the message doesn't say what the strict errors are, and the command doesn't return an error code despite not being successful).
To work around, I have to run the sequence:
composer config name a/a(dummy but valid name)composer config description ""composer update --lock(if I have acomposer.lock)composer normalizecomposer config --unset namecomposer config --unset descriptioncomposer update --lock(if I have acomposer.lock)
Would it be feasible to mimic --no-check-publish (possibly opt-in)?
Maybe related to #297
Reactions are currently unavailable