Commit e68f68d1 authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

Merge branch 'improve_dependency_check' into 'master'

Improve dependency check

See merge request !86
parents 3cc73e6c aaffb55e
Pipeline #38060 passed with stages
in 5 minutes and 4 seconds
......@@ -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