Commit bb7dc6e
Add
* Add `HF_HUB_DISABLE_SYMLINKS` env variable to force no-symlink cache
When a shared NAS is used as HF_HUB_CACHE across machines with different
OSes, symlinks created on Linux cannot be followed by Windows clients.
Setting `HF_HUB_DISABLE_SYMLINKS=1` makes `are_symlinks_supported()`
always return False, so files are copied instead of symlinked.
Closes #4022
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* add test + update markdown
* extra careful
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>HF_HUB_DISABLE_SYMLINKS env variable to force no-symlink cache (#4032)1 parent 2593ff8 commit bb7dc6e
5 files changed
Lines changed: 22 additions & 1 deletion
File tree
- docs/source/en/package_reference
- src/huggingface_hub
- utils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
640 | 644 | | |
641 | 645 | | |
642 | 646 | | |
643 | | - | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
0 commit comments