-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Refuses to normalize projects without name/description #349
Comments
Also I have a question (not sure deserves opening a new issue): Does this package really require being a plugin (and PS: Thanks! |
this is not needed, you can install it globally and run I've just checked and I'm surprised it is not the default/recommended way in README. |
Duh, how did I miss the Phar section in the README 😫 (Sorry for the digression from the main issue) |
Update on the issue: Compare with the first commands: $ composer validate --no-check-publish --strict
./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 => with the
are no longer present (because otherwise it would return And indeed, if I remove the But the normalization is still not successful ( From #175 (comment):
(which was closed for inactivity, not fixed). Indeed, does the normalization really depend on the JSON being strictly valid according to the schema? |
Apologies for the delay! Unfortunately I will not be able to sort this out this week or next week. Is that going to work for you? |
@localheinz: No worry, no urgency at all on my side, the workaround sequence (at the end of my first post) can actually be easily turned into a shell script 😉 (Moreover I would not want to be the cause of a side-effect break/regression in the |
Since this issue has not had any activity within the last sixty days, I have marked it as stale. I will close it if no further activity occurs within the next five days. |
Can you take a look at Again, apologies for the delay! |
I have downloaded the latest PHAR and I confirm that the issue is resolved. Thank you! |
Thank you, @guilliamxavier! |
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):It is valid for non-public use:
but impossible to normalize as-is:
(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 normalize
composer config --unset name
composer config --unset description
composer update --lock
(if I have acomposer.lock
)Would it be feasible to mimic
--no-check-publish
(possibly opt-in)?Maybe related to #297
The text was updated successfully, but these errors were encountered: