-
Notifications
You must be signed in to change notification settings - Fork 13
Docs: explain how to block packages #128
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I added 2 suggestions, but you decide if they make sense :)
|
||
### Prevent a package from being used with custom packages | ||
|
||
While there is no direct "block package" feature in Packagist, you can effectively prevent a specific package from being used by creating a placeholder package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do mention that on the bottom of this new section, but I felt this was missing up here:
While there is no direct "block package" feature in Packagist, you can effectively prevent a specific package from being used by creating a placeholder package. | |
While there is no direct "block package" feature in Packagist, you can effectively prevent a specific package from being used in your project by creating a placeholder package. |
What do you think?
|
||
While there is no direct "block package" feature in Packagist, you can effectively prevent a specific package from being used by creating a placeholder package. | ||
|
||
The package type [metapackage](https://getcomposer.org/doc/04-schema.md#type) ensures no code is associated with it. Optionally, you can mark the package as [abandoned](https://getcomposer.org/doc/04-schema.md#abandoned) and suggest an alternative. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package type [metapackage](https://getcomposer.org/doc/04-schema.md#type) ensures no code is associated with it. Optionally, you can mark the package as [abandoned](https://getcomposer.org/doc/04-schema.md#abandoned) and suggest an alternative. | |
The package type [metapackage](https://getcomposer.org/doc/04-schema.md#type) ensures no code is associated with it. Optionally, you can mark the package as [abandoned](https://getcomposer.org/doc/04-schema.md#abandoned) and optionally suggest an alternative. |
They might not have a suggestion for an alternative package, if they just want to block something. It's all described in the docs you linked, but this might make it clearer that you don't need to suggest an alternative.
Add an example on how to use custom packages to block a package.