Skip to content
Snippets Groups Projects
Commit 0b1d7b06 authored by François  LAURENT's avatar François LAURENT
Browse files

labels files reexport their dependencies

parent 7155799a
No related branches found
No related tags found
No related merge requests found
Pipeline #82620 passed
......@@ -271,7 +271,14 @@ function savetofile(controller, file; datafile=nothing)
end
end
datafilepath = isfile(datafile) ? datafile : joinpath(cwd(controller), datafile)
Datasets.pushdependency!(dataset, datafilepath)
deps = getdependencies(getinputfile(controller)[])
if isempty(deps)
Datasets.pushdependency!(dataset, datafilepath)
else
for dep in deps
Datasets.pushdependency!(dataset, dep)
end
end
Datasets.to_json_file(filepath, dataset)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment