Skip to content

Docs: explain how to block packages#128

Merged
pscheit merged 4 commits into
mainfrom
block-package
May 6, 2025
Merged

Docs: explain how to block packages#128
pscheit merged 4 commits into
mainfrom
block-package

Conversation

@stevenrombauts
Copy link
Copy Markdown
Contributor

Add an example on how to use custom packages to block a package.

@stevenrombauts stevenrombauts requested a review from a team April 25, 2025 15:30
@stevenrombauts stevenrombauts self-assigned this Apr 25, 2025
Comment thread docs/setup.md Outdated
Copy link
Copy Markdown
Contributor

@IgorBenko IgorBenko left a 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 :)

Comment thread docs/setup.md Outdated
Comment thread docs/setup.md Outdated
Copy link
Copy Markdown

@timscharfenort8 timscharfenort8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work

Co-authored-by: Igor Benko <igor.benko@gmail.com>
Copy link
Copy Markdown
Contributor

@IgorBenko IgorBenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread docs/setup.md
### 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest "your Composer project" then? It's about blocking usage in your codebase, not in the Private Packagist org/repository?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i see how you look at it. Yeah then leave it as is

Comment thread docs/setup.md Outdated
Copy link
Copy Markdown
Contributor

@pscheit pscheit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slightly different

Comment thread docs/setup.md Outdated
Co-authored-by: Igor Benko <igor.benko@gmail.com>
@glaubinix glaubinix requested a review from IgorBenko May 6, 2025 09:03
@pscheit pscheit merged commit 79c4749 into main May 6, 2025
@pscheit pscheit deleted the block-package branch May 6, 2025 10:26
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.

5 participants