mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #10619 - perlun:add-update-cargo-all-packages-warning, r=Wafflespeanut
mach: Added warning for update-cargo -a To quote Lars Bergstrom: > yeah, that's a giant footgun :-) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10619) <!-- Reviewable:end -->
This commit is contained in:
commit
db4481b450
1 changed files with 4 additions and 2 deletions
|
@ -62,10 +62,12 @@ class MachCommands(CommandBase):
|
||||||
help='Command-line arguments to be passed through to cargo update')
|
help='Command-line arguments to be passed through to cargo update')
|
||||||
@CommandArgument(
|
@CommandArgument(
|
||||||
'--package', '-p', default=None,
|
'--package', '-p', default=None,
|
||||||
help='Updates selected package')
|
help='Updates the selected package')
|
||||||
@CommandArgument(
|
@CommandArgument(
|
||||||
'--all-packages', '-a', action='store_true',
|
'--all-packages', '-a', action='store_true',
|
||||||
help='Updates all packages')
|
help='Updates all packages. NOTE! This is very likely to break your ' +
|
||||||
|
'working copy, making it impossible to build servo. Only do ' +
|
||||||
|
'this if you really know what you are doing.')
|
||||||
def update_cargo(self, params=None, package=None, all_packages=None):
|
def update_cargo(self, params=None, package=None, all_packages=None):
|
||||||
if not params:
|
if not params:
|
||||||
params = []
|
params = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue