Commit 9eebf31
committed
fix(cache): derive sqlite db suffix from python_executable path, not python_version config field
python_version in config was unreliable/missing, causing _connect_cache to open
cache_<env_id>.sqlite (no suffix) while redis_key_prefix correctly resolved py3.11
from the executable path — opening cache_<env_id>-py3.11.sqlite. Snapshot keys
written by save were never found by revert as a result.
Fix mirrors redis_key_prefix logic: regex on executable path, subprocess fallback
for edge cases like the python3 symlink on 3.7.
Modified:
• src/omnipkg/core.py (+11/-2 lines)
[gitship-generated]1 parent 77a322e commit 9eebf31
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7059 | 7059 | | |
7060 | 7060 | | |
7061 | 7061 | | |
7062 | | - | |
7063 | | - | |
| 7062 | + | |
| 7063 | + | |
| 7064 | + | |
| 7065 | + | |
| 7066 | + | |
| 7067 | + | |
| 7068 | + | |
| 7069 | + | |
| 7070 | + | |
| 7071 | + | |
| 7072 | + | |
7064 | 7073 | | |
7065 | 7074 | | |
7066 | 7075 | | |
| |||
0 commit comments