Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
I have my
release_packages_path
set to a mounted network drive e.g.'x:/rez-studio/release'
, and when I run the following script to get current resolved context, I gotResourceError
that saying my repository location mismatched.Full error
Those two paths were actually pointing to the same location, one is a mounted path, another is an Windows UNC path.
The UNC path was coming from the filesystem plugin, which convert the path with
rez.utils.filesystem.canonical_path
,at here 👇🏼
https://github.com/nerdvegas/rez/blob/77ada5b1a9a1793fd14a2403ebc8c5f6385599ba/src/rezplugins/package_repository/filesystem.py#L478-L480
But the other path (from
ResourceHandle
) that put to varified with, does not made it canonical.https://github.com/nerdvegas/rez/blob/77ada5b1a9a1793fd14a2403ebc8c5f6385599ba/src/rez/package_repository.py#L345-L349
Hence the false alarm.
Solution
Is this PR.