mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Added warning for update-cargo -a
To quote Lars Bergstrom: > yeah, that's a giant footgun :-)
This commit is contained in:
parent
4807dadf19
commit
6653c26c90
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