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

Force CreateProjectCommand to use the installed composer.json #11493

Merged
merged 3 commits into from Jun 7, 2023

Conversation

aschempp
Copy link
Contributor

@aschempp aschempp commented Jun 5, 2023

In my local environment (Contao Manager), I always have the COMPOSER environment variable set to the root of my project directory. When using the create-project command with an new, empty directory target (because my project dir is not empty), Composer correctly downloads the files into the new directory, but then fails when calling Factory::create because that uses the COMPOSER environment variable instead of the newly downloaded files.

I'm not sure what implications this could have on a running command, but I would assume that the variable is gone as soon as the create-project command is finished?

@Seldaek Seldaek added this to the 2.6 milestone Jun 6, 2023
@Seldaek Seldaek merged commit ebd0a60 into composer:main Jun 7, 2023
12 checks passed
@Seldaek
Copy link
Member

Seldaek commented Jun 7, 2023

Thanks :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants