From 3d15a5b37a64c21b24ca228c1e82e968dc4cfaf2 Mon Sep 17 00:00:00 2001 From: Ayush Kamat Date: Sat, 26 Mar 2022 13:58:41 -0700 Subject: [PATCH] fix: ignore data folder --- latch/services/register/register.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/latch/services/register/register.py b/latch/services/register/register.py index ff08f9da..d282a117 100644 --- a/latch/services/register/register.py +++ b/latch/services/register/register.py @@ -384,6 +384,9 @@ def _register_serialized_pkg(ctx: RegisterCtx, serialize_dir: Path) -> dict: for dirname, dirnames, fnames in os.walk(ctx.pkg_root): for filename in fnames: file = Path(dirname).resolve().joinpath(filename) + # ignore data folder + if ctx.pkg_root.joinpath("data") in file.parents: + continue key = str(file.relative_to(ctx.pkg_root)) commit_files[key] = open(file, "rb")