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

Support for dependencies on different versions of the same package #144

Open
rugabarbo opened this issue Dec 7, 2020 · 6 comments
Open

Comments

@rugabarbo
Copy link
Member

Now the tool is usable for work, because many packages are in dev status.

But let's imagine the following situation after the packages are released:

  1. Package A requires version ^2.0 of package X.
  2. Package B requires version ^1.7 of package X.
  3. Package C requires dev-master of package X.

But the tool only installs one version of the X package and creates symlinks for one version. Manual version control with so many repositories can be very tedious...

I currently have no solutions for this problem. But we need to think about this beforehand.

@rugabarbo rugabarbo changed the title The problem that awaits us after the release of many packages Support for dependencies on different versions of the same package Dec 7, 2020
@samdark
Copy link
Member

samdark commented Dec 7, 2020

I don't have a problem with that changing 3-4 repositories to a certain branch and then when done executing ./yii-dev exec "git checkout -- . & git checkout master".

@samdark
Copy link
Member

samdark commented Dec 7, 2020

How do you see ideal workflow in you case?

@rugabarbo
Copy link
Member Author

How do you see idel workflow in you case?

Ideal workflow:

  1. I want to work on package yii-zzz.
  2. I call command ./yii-dev package/sync-dependencies yii-zzz
  3. The command pulls concrete versions for the dependencies.
  4. I am working with the actual versions that package yii-zzz depends on.

But there are also pitfalls here...

@samdark
Copy link
Member

samdark commented Dec 7, 2020

How would you commit/push changes in these concrete versions? How would you deal with pull requests that depend on each other?

@rugabarbo
Copy link
Member Author

These are the details that need to be understood in advance. The number of packages is growing. Manual version resolving might be hell in the future.

@samdark
Copy link
Member

samdark commented Dec 8, 2020

There should not be too many inter-dependencies in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants