Add dependency support to plugins recipe.
This is to add a dependency to install missing certificates on windows
bots.
Change-Id: If2c2a219c748e55ee767a516a8bc672b04dc3670
Bug: https://github.com/flutter/flutter/issues/83349
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/13900
Reviewed-by: Stuart Morgan <stuartmorgan@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipes/plugins/plugins.expected/basic.json b/recipes/plugins/plugins.expected/basic.json
index 550ef7b..f05641a 100644
--- a/recipes/plugins/plugins.expected/basic.json
+++ b/recipes/plugins/plugins.expected/basic.json
@@ -233,6 +233,10 @@
},
{
"cmd": [],
+ "name": "Dependencies"
+ },
+ {
+ "cmd": [],
"name": "prepare environment"
},
{
diff --git a/recipes/plugins/plugins.py b/recipes/plugins/plugins.py
index 2ed1d40..f08b307 100644
--- a/recipes/plugins/plugins.py
+++ b/recipes/plugins/plugins.py
@@ -31,7 +31,11 @@
)
channel = api.properties.get('channel', 'master')
env, env_prefixes = api.repo_util.flutter_environment(flutter_checkout_path)
- api.flutter_deps.vs_build(env, env_prefixes)
+
+ with api.step.nest('Dependencies'):
+ deps = api.properties.get('dependencies', [])
+ api.flutter_deps.required_deps(env, env_prefixes, deps)
+
with api.context(env=env, env_prefixes=env_prefixes,
cwd=flutter_checkout_path):
with api.step.nest('prepare environment'):