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

Non packagist friendly Org Names cause failure #20

Open
dustinleblanc opened this issue Feb 24, 2024 · 0 comments
Open

Non packagist friendly Org Names cause failure #20

dustinleblanc opened this issue Feb 24, 2024 · 0 comments

Comments

@dustinleblanc
Copy link

Describe the bug or behavior
My Github organization is called UnrealistTech. When using this org name to initialize a project, it fails when attempting to modify the composer.json because the org name is invalid by Composer and Packagist standards.

To Reproduce

export GITHUB_ORG='UnrealistTech'
composer create-project g1a/starter:^2 drupal_test_bench

Expected behavior
Project setup would happen

Actual behavior
What happened instead?
Error during initialization:

In Factory.php line 320:

  "./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](([_.]|-{1,2})?[a-z0-9]+)*$

Workaround
I think I could just not use an org, and then edit the package data after the fact.

System Configuration

Q A
PHP version 8.2.16
OS? Mac (M1)

Additional information
Add any other context about the problem here.

dustinleblanc added a commit to dustinleblanc/cli_starter that referenced this issue Feb 24, 2024
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

1 participant