Urgent: tracked deps and local symlinks on main delete both folders on pull, including the Wine prefix and the saves #340
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#340
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@joaowtrdev on GitHub · 2026-12-03 17:24 UTC · original
What happened
The merge commit of #302 (
2280f88) addsdepsandlocalas tracked symlinks (mode120000), each pointing to an absolute path on another machine. Neither parent of the merge has them (1fc6138,39d84d3), so they came in with the merge itself. They are still there ona7a417b..gitignorehas/deps/and/local/. A pattern with a trailing slash only matches directories, so a symlink with that name is not ignored and could be committed.Git treats ignored files as expendable. On an existing install,
git pullfrom71317d7to past2280f88removed both ignored folders without a warning and put the broken links in their place:deps/: the patched Mesa, dxc, FSR 4 and the venv../setup.shand./build.shthen stop withmkdir: cannot create directory '<repo>/deps': File exists, and the game cannot start.local/: the Wine prefix (local/prefixorlocal/prefix-proton). The data folder is inside it, so the saves and the prepared pipelines go too, along with the logs,local/benchmark/and anything else users keep there.I lost my saves this way. Anyone who updates an existing install, by hand or with
update.sh, will lose theirs the same way.Suggested fix
and
/depsand/localinstead of/deps/and/local/in.gitignore, so a symlink there is ignored too. Until the fix is merged, it may be worth a note at the top of the README telling people not to update.Before updating, for anyone on
71317d7or earlierBack up
local/first. If you already updated and the folders are links, make the links real folders again:setup.shbuildsdeps/and the prefix again, but the saves cannot be recreated this way.