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

Add the ability to specify a custom repository #12

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

adrum
Copy link

@adrum adrum commented Nov 16, 2024

This extends the package parsing logic to look at --repo= options when initializing packages. This is useful when combined with testing packages before they have made it release, or trialing a private package/project. This resolves #9

It supports 3 different repository types from composer:

  1. composer registries: cpx <vend>/<pack> --repo=https://composer.example.com
  2. git repos: cpx <vend>/<pack> --repo=git+https://github.com/<vendor>/<repo>
  3. local paths: cpx <vend>/<pack> --repo=path:/some/place/on/disk

This also extends to the new command added in #11:

cpx new <vend>/<pack> project-name --repo=git+https://gitlab.com/<vendor>/<repo>

This should be merged after #11, assuming that one is accepted eventually. If not, I can readjust this branch to make it non-dependent on #11.

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.

Feature: Custom Repository
1 participant