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

[Bug] v1.13.0: composer package-type "metapackage" conflicts with PackageJsonSynchronizer #768

Closed
possi opened this issue May 18, 2021 · 3 comments · Fixed by #769
Closed

Comments

@possi
Copy link

possi commented May 18, 2021

Steps to reproduce:

  • composer global require "symfony/flex"
  • echo '{}' > package.json
  • composer require "gaufrette/ftp-adapter"

Output:

  [ErrorException]
  file_get_contents(/home/starke/flex-test/vendor/gaufrette/ftp-adapter/composer.json): failed to open stream: No such file or directory

Composer version 2.0.13 2021-04-27 13:11:08
symfony/flex v1.13.0

This does not occur with v1.12.2

Assumed Explanation:
The package-type doesn't "write anything to the filesystem". Therefore the composer.json can not be read, as it isn't present.

@possi possi changed the title [Bug] v1.13.0: type "metapackage" conflicts with PackageJsonSyncronizer [Bug] v1.13.0: composer package-type "metapackage" conflicts with PackageJsonSynchronizer May 18, 2021
@stof
Copy link
Member

stof commented May 18, 2021

There is some discussion about it on the commit itself (though this issue is a better place): 8798024#r50964641

@possi
Copy link
Author

possi commented May 18, 2021

@stof I second using installed.json/api
There may be other plugins for different package types (typo3, magento, etc.) which move the package installation directory or changes its directory structure.

@stephanvierkant
Copy link

Same issue with minishlink/web-push-bundle (type: symfony-bundle)

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 a pull request may close this issue.

3 participants