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

composer.json file is not compatible with latest composer version (2.0.7)? #10

Open
OttoCaldwell opened this issue Nov 14, 2020 · 3 comments

Comments

@OttoCaldwell
Copy link

OttoCaldwell commented Nov 14, 2020

I am getting this error when running composer install with a clone of this repo:

[Composer\Json\JsonValidationException]
./composer.json does not match the expected JSON schema:
- name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$

It seems composer needs a '/' in the name field. I tried replacing the '-' with a '/', as below and it seems to get past this issue:

{
"name": "intuit/demos-webhooks"
....

but I don't know if that is the correct fix or not...just a test and it seemed to work.

@iamshuls
Copy link

iamshuls commented Feb 3, 2021

How did you figure this out? Actually you just saved me.

@matthewediger
Copy link

Thanks Otto

@aizazshahid
Copy link
Contributor

@OttoCaldwell here is the reason why it worked : ).

Already generated the PR with changes.

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

4 participants