Commit aaffb55e authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

Improve dependency check

parent 3cc73e6c
......@@ -331,6 +331,8 @@ def execute_impl(prefix, cache, instructions_file):
def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path
alg = Algorithm(prefix, asset_name)
if not alg.valid:
raise RuntimeError("Invalid algortihm: {}".format(alg.errors))
dependencies = {}
......
......@@ -136,6 +136,8 @@ def pull_impl(webapi, prefix, names, force, indentation, cache):
def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path
df = DataFormat(prefix, asset_name)
if not df.valid:
raise RuntimeError("Invalid dataformat: {}".format(df.errors))
dependencies = {}
......
......@@ -714,6 +714,8 @@ def plot_impl(
def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path
exp = Experiment(prefix, asset_name)
if not exp.valid:
raise RuntimeError("Invalid experiment {}".format(exp.errors))
dependencies = {"toolchains": [exp.toolchain.name]}
......
......@@ -171,6 +171,8 @@ def pull_impl(webapi, prefix, names, force, indentation, cache):
def get_dependencies(ctx, asset_name):
prefix = ctx.meta["config"].path
lib = Library(prefix, asset_name)
if not lib.valid:
raise RuntimeError("Invalid library: {}".format(lib.errors))
dependencies = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment