Skip to content

Commit

Permalink
Bump context serialize_version and fix key error on getting the "test…
Browse files Browse the repository at this point in the history
…ing" key on older contexts

Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Oct 26, 2024
1 parent 09bf497 commit c8d5d0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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, 8)
serialize_version = (4, 9)
tmpdir_manager = TempDirs(config.context_tmpdir, prefix="rez_context_")
context_tracking_payload = None
context_tracking_lock = threading.Lock()
Expand Down Expand Up @@ -1630,7 +1630,6 @@ def _print_version(value):

r.timestamp = d["timestamp"]
r.building = d["building"]
r.testing = d["testing"]
r.caching = d["caching"]
r.implicit_packages = [PackageRequest(x) for x in d["implicit_packages"]]
r._package_requests = [PackageRequest(x) for x in d["package_requests"]]
Expand Down Expand Up @@ -1725,6 +1724,9 @@ def _print_version(value):

r.package_cache_async = d.get("package_cache_async", True)

# -- SINCE SERIALIZE 4.9
r.testing = d.get("testing", False)

# <END SERIALIZATION>

# track context usage
Expand Down

0 comments on commit c8d5d0c

Please sign in to comment.