Urgent: tracked deps and local symlinks on main delete both folders on pull, including the Wine prefix and the saves #340

Closed
opened 2026-12-03 17:29:53 +00:00 by github-bot · 0 comments
Owner

@⁠joaowtrdev on GitHub · 2026-12-03 17:24 UTC · original

What happened

The merge commit of #302 (2280f88) adds deps and local as tracked symlinks (mode 120000), 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 on a7a417b.

.gitignore has /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 pull from 71317d7 to past 2280f88 removed 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.sh and ./build.sh then stop with mkdir: cannot create directory '<repo>/deps': File exists, and the game cannot start.
  • local/: the Wine prefix (local/prefix or local/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

git rm --cached deps local

and /deps and /local instead 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 71317d7 or earlier

Back up local/ first. If you already updated and the folders are links, make the links real folders again:

git update-index --skip-worktree deps local
rm deps local && mkdir deps local
./setup.sh

setup.sh builds deps/ and the prefix again, but the saves cannot be recreated this way.

**@⁠joaowtrdev** on GitHub · 2026-12-03 17:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/340) ### What happened The merge commit of #302 (`2280f88`) adds `deps` and `local` as tracked symlinks (mode `120000`), 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 on `a7a417b`. `.gitignore` has `/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 pull` from `71317d7` to past `2280f88` removed 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.sh` and `./build.sh` then stop with `mkdir: cannot create directory '<repo>/deps': File exists`, and the game cannot start. - `local/`: the Wine prefix (`local/prefix` or `local/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 ``` git rm --cached deps local ``` and `/deps` and `/local` instead 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 `71317d7` or earlier Back up `local/` first. If you already updated and the folders are links, make the links real folders again: ``` git update-index --skip-worktree deps local rm deps local && mkdir deps local ./setup.sh ``` `setup.sh` builds `deps/` and the prefix again, but the saves cannot be recreated this way.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 17:29:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#340
No description provided.