-
Notifications
You must be signed in to change notification settings - Fork 36
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
Foreach: Order of repos make includes
process before
#356
Comments
Sounds reasonable. To tell you the truth I did ask myself about how to handle the group inclusion when I had to make the tests pass. Can you please take a look at the new tests on the following PR: #357 and tell me what you think ? |
Yea sorry I forgot that use-case and only noticed after I tried tsrc 2.7, I should have explained that before.
I tested that branch, and my ten repositories, which depending on each other now works like a charm for I notice a side effect:
If you run |
There should be. We used to use unordered sets when processing group inclusion, which guarantees non-duplication, but in order to preserve the original order we now need to use lists instead. Looks like a regression - we need more tests - and we need to fix the bug :P |
Well at least one test with one duplicate ;-) – but probably that is already sufficient. Yea that is probably one of the use cases why there are packages with an “OrderedSet” on pypi.org and like them – I ususally always workaround that by using |
Can you take a look at : #357 ? I think this works. I used a |
Yea for a single iteration, an additional package might be oversized, it was anyway a site note from me. I like your workaround with the dict!
I tested again and there are no duplicates any more! And my nine python projects, which I manage with tsrc, and which all depend on each other now works fine on installing! Thank you very much 😄 ! |
Environment
tsrc version
: tsrc 2.7.0This is a follow up problem of #352
Let us take this example:
With tsrc 2.7.0 the order is according to the group, so
so
tsrc foreach --group core -j1
will process in the order “chris, bob" , which is OK.If you do
tsrc foreach --group core -j1
will process in the order “alice, chis, bob” (i.e. the elements inrepos
are processed beforeincludes
). However, I assume thatincludes
mean that the group “all” needs group “core”, so that things in include are executed before the elements inrepos
. So I would expect thattsrc foreach --group core -j1
will process in the order “chirs, bob, alice” instead. Hence can we please processincludes
before (and other groups in the order as listed inincludes
) therepos
?The text was updated successfully, but these errors were encountered: