Docs: explain how to block packages#128
Merged
Merged
Conversation
glaubinix
reviewed
Apr 25, 2025
IgorBenko
requested changes
Apr 25, 2025
Contributor
IgorBenko
left a comment
There was a problem hiding this comment.
Looks great! I added 2 suggestions, but you decide if they make sense :)
Co-authored-by: Igor Benko <igor.benko@gmail.com>
pscheit
reviewed
Apr 30, 2025
| ### 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. | ||
| 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. |
Contributor
There was a problem hiding this comment.
instead of saying project we could generalize it and say Composer repository? Or (sub-)organization?
Project (for me) is really just a package with a composer.json + .lock file
Contributor
Author
There was a problem hiding this comment.
I'd suggest "your Composer project" then? It's about blocking usage in your codebase, not in the Private Packagist org/repository?
Contributor
There was a problem hiding this comment.
oh i see how you look at it. Yeah then leave it as is
pscheit
reviewed
Apr 30, 2025
IgorBenko
requested changes
Apr 30, 2025
Co-authored-by: Igor Benko <igor.benko@gmail.com>
pscheit
approved these changes
May 5, 2025
IgorBenko
approved these changes
May 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an example on how to use custom packages to block a package.