-
Notifications
You must be signed in to change notification settings - Fork 414
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
pkg: remove context arguments #9343
pkg: remove context arguments #9343
Conversation
Instead of a |
I originally missed #9324 so I haven't implemented the positional arguments. I'll mark this as draft and finish implementing it. |
121be2e
to
7c0cb03
Compare
7c0cb03
to
b6a9ea2
Compare
d8c2279
to
4c16676
Compare
4c16676
to
7243252
Compare
@gridbugs This is now ready to be reviewed. Let me know if you have any questions. |
So it looks like the default behaviour of commands like My preference is for it to operate on the default lockdir when no lockdirs are specified and to allow anonymous args overriding which lockdirs are operated on, and add a flag |
7243252
to
e0aeae2
Compare
My motivation for defaulting to all commands is that @gridbugs Would you agree that the default behaviour of positional arguments is something we can decide on at a later time? We can follow up in an issue and discuss the pros and cons on either behaviour. I don't think it should prevent this PR from being accepted however. |
I don't think the comparison to the way
The same could be said about any feedback regarding UX. Is there something in particular about this behaviour that merits merging it now and deferring further discussion? Are people blocked on this PR? |
I'll change the default behaviour to
|
f0c717e
to
2d203fc
Compare
@gridbugs I've changed it so that it defaults to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Alizter
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
2d203fc
to
b92a1d4
Compare
We remove the --all-contexts and --context arguments from various package commands. Their usage in the tests has been replaced with the equivalent --workspace arguments.
They are replaced with positional lock directory arguments as suggested in #9324. It's quite natural for all our package commands to use this term, so I have put it in
Pkg_common
and simplified how we select lock directories in various commands.