From 0b1d7b067dcea1b582110755581eb09ce7a0c985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net> Date: Wed, 1 Jun 2022 14:15:31 +0200 Subject: [PATCH] labels files reexport their dependencies --- src/files.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/files.jl b/src/files.jl index 72c3c6a..5b50b68 100644 --- a/src/files.jl +++ b/src/files.jl @@ -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 -- GitLab