Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symlink path resolve mismatch #138

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

ankushvangari
Copy link
Contributor

ModelScan fails due to mismatch of relative and absolute paths because we are trying to resolve the absolute paths and file paths to their respective symlinks. The issue here is that some files may have symlinks while others may not causing the mismatch. We shouldn't need to resolve any symlinks and just use the directory being used.

Copy link
Member

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@swashko swashko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@swashko swashko merged commit 5f8fe71 into protectai:main Apr 15, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants