Skip to content

Conversation

@mattt
Copy link
Collaborator

@mattt mattt commented Dec 5, 2025

No description provided.

@mattt mattt requested a review from Copilot December 5, 2025 13:27
Copilot finished reviewing on behalf of mattt December 5, 2025 13:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where copying files from the cache to a destination would copy symlinks as symlinks instead of copying the actual file content. Since HubCache uses a content-addressed storage structure with symlinks from snapshots/ to blobs/ (compatible with Python's huggingface_hub), the symlink must be resolved before copying to ensure the actual file content is copied to the destination.

  • Resolves symlinks before copying files from cache to destination
  • Updates comment to explain the symlink resolution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants