Skip to content

Commit

Permalink
Readd check for if variant_root exists, but only if repository type i…
Browse files Browse the repository at this point in the history
…s filesystem

Signed-off-by: Bryce Gattis <[email protected]>
  • Loading branch information
BryceGattis committed Feb 24, 2024
1 parent 35b9eed commit cec8fd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rez/package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ def add_variant(self, variant, force=False):
% variant.uri
)

if package.repository.name() == "filesystem" and not os.path.isdir(variant_root):
raise PackageCacheError(
"Not cached - variant %s root does not appear on disk: %s"
% (variant.uri, variant_root)
)

if not force:
# package is configured to not be cachable
if not package.is_cachable:
Expand Down

0 comments on commit cec8fd6

Please sign in to comment.