Skip to content

Commit 6fa0bca

Browse files
Document known issue with empty files in existing repositories
1 parent c483032 commit 6fa0bca

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

docs/KNOWN_ISSUES.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Known Issues
2+
3+
## Empty Files in Existing Repositories (Fixed in commit a417823)
4+
5+
### Issue
6+
Files retrieved using `digstore get` from commits made before commit a417823 will be empty (0 bytes).
7+
8+
### Cause
9+
The binary staging area was storing only chunk metadata (hash, offset, size) but not the actual chunk data. When files were committed, the chunk data field was empty, resulting in empty files when retrieved.
10+
11+
### Fix
12+
The commit process has been updated to read chunk data from the original files at commit time and properly store it in the layer.
13+
14+
### Impact
15+
- **New commits**: Files committed after this fix will store and retrieve correctly
16+
- **Existing commits**: Files from commits before this fix will remain empty
17+
- **Workaround**: Re-add and re-commit files if you need to retrieve them
18+
19+
### Example
20+
```bash
21+
# Files from old commits will be empty
22+
digstore get README.md -o test.txt # Results in 0-byte file
23+
24+
# To fix, re-add and re-commit the file
25+
digstore add README.md
26+
digstore commit -m "Re-commit with chunk data fix"
27+
28+
# Now retrieval works correctly
29+
digstore get README.md -o test.txt # File has content
30+
```
31+
32+
## Other Known Issues
33+
34+
### Windows PATH Configuration
35+
- The Windows installer adds digstore to PATH, but you need to restart your terminal or log out/in for changes to take effect
36+
- Some terminals may cache the PATH and require a full restart
37+
38+
### Large File Handling
39+
- Very large files (>1GB) may take significant time to process
40+
- Memory usage scales with file size during chunking
41+
42+
### File Permissions
43+
- File permissions are not fully preserved on Windows
44+
- Unix file modes are stored but may not be restored correctly on Windows systems

0 commit comments

Comments
 (0)