From 8476696bfe445806658c6ea8b304f72a79b093ff Mon Sep 17 00:00:00 2001 From: Nathan Rusch Date: Sun, 22 Sep 2024 11:38:32 -0700 Subject: [PATCH] Fix `package_cache_async` missing from `ResolvedContext` dict round-trip. Also bumped the serialization formation from 4.7 to 4.8 (#1810) Signed-off-by: Nathan Rusch --- src/rez/resolved_context.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rez/resolved_context.py b/src/rez/resolved_context.py index 7e1586b41..124a1cdf6 100644 --- a/src/rez/resolved_context.py +++ b/src/rez/resolved_context.py @@ -134,7 +134,7 @@ class ResolvedContext(object): command within a configured python namespace, without spawning a child shell. """ - serialize_version = (4, 7) + serialize_version = (4, 8) tmpdir_manager = TempDirs(config.context_tmpdir, prefix="rez_context_") context_tracking_payload = None context_tracking_lock = threading.Lock() @@ -1560,6 +1560,7 @@ def _add(field): append_sys_path=self.append_sys_path, package_caching=self.package_caching, + package_cache_async=self.package_cache_async, default_patch_lock=self.default_patch_lock.name, @@ -1716,6 +1717,10 @@ def _print_version(value): req = Requirement(eph_str) r._resolved_ephemerals.append(req) + # -- SINCE SERIALIZE VERSION 4.8 + + r.package_cache_async = d.get("package_cache_async", True) + # # track context usage