Skip to content

Commit

Permalink
Fix package_cache_async missing from ResolvedContext dict round-t…
Browse files Browse the repository at this point in the history
…rip. Also bumped the serialization formation from 4.7 to 4.8 (#1810)

Signed-off-by: Nathan Rusch <[email protected]>
  • Loading branch information
nrusch authored Sep 22, 2024
1 parent 63326f2 commit 8476696
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rez/resolved_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,

Expand Down Expand Up @@ -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)

# <END SERIALIZATION>

# track context usage
Expand Down

0 comments on commit 8476696

Please sign in to comment.