Urgent: untrack the deps and local symlinks from #302's merge (pulling main deletes each checkout's deps/ and local/) #339

Manually merged
github merged 1 commit from gh-pr/339/head into gh-pr/339/base 2026-12-03 17:29:44 +00:00
Owner

@⁠skalel on GitHub · 2026-12-03 17:21 UTC · original
skalel:fix/untrack-deps-local → main · +2 −4 · 3 files · 1 commits · merged 2026-12-03 17:23 UTC

Urgent: pulling main deletes each checkout's deps/ and local/

The merge of #302 (2280f88) committed two symlinks by mistake:

deps  -> /home/goldfish/Games/GTA6/Ports/VIctory-xmem/deps
local -> /home/goldfish/Games/GTA6/Ports/VIctory-xmem/local

.gitignore has /deps/ and /local/. Those patterns match only directories, so the links could be committed.

On any checkout that already has those folders, merging main (by hand or through update.sh) replaces the real folders with the dangling links. Git may overwrite ignored files during a merge, so it does this without warning. Two things are lost:

  • deps/: the Windows SDK, Mesa, vkd3d-proton and wineserver builds. ./setup.sh can rebuild them, which takes a while.
  • local/: saves, the shader and pipeline caches (several GiB, rebuilt on the next play), logs and menu.conf. Saves cannot be rebuilt.

It happened here: after the merge, build.sh stopped with no sdk and local/ was gone. On btrfs without snapshots the data could not be recovered.

Fix

  • Untrack deps and local.
  • Ignore them as /deps and /local, so a folder and a link are both ignored.

A checkout that merges main with this commit on top never sees the links, because the bad commit and its removal cancel out in the same merge. So the sooner this lands, the fewer people lose data.

For people who already pulled

Before running anything else, check ls -la deps local. If they are links to /home/goldfish/..., the real folders are already gone:

  1. Remove the links.
  2. Run ./setup.sh to rebuild deps/.
  3. Restore local/ from a backup or snapshot if you have one.

It may be worth pinning a notice until this is merged.

🤖 Generated with Claude Code

**@⁠skalel** on GitHub · 2026-12-03 17:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/339) `skalel:fix/untrack-deps-local` → `main` · +2 −4 · 3 files · 1 commits · merged 2026-12-03 17:23 UTC ## Urgent: pulling main deletes each checkout's `deps/` and `local/` The merge of #302 (2280f88) committed two symlinks by mistake: ``` deps -> /home/goldfish/Games/GTA6/Ports/VIctory-xmem/deps local -> /home/goldfish/Games/GTA6/Ports/VIctory-xmem/local ``` `.gitignore` has `/deps/` and `/local/`. Those patterns match only directories, so the links could be committed. On any checkout that already has those folders, merging main (by hand or through `update.sh`) replaces the real folders with the dangling links. Git may overwrite ignored files during a merge, so it does this without warning. Two things are lost: - **`deps/`**: the Windows SDK, Mesa, vkd3d-proton and wineserver builds. `./setup.sh` can rebuild them, which takes a while. - **`local/`**: saves, the shader and pipeline caches (several GiB, rebuilt on the next `play`), logs and `menu.conf`. **Saves cannot be rebuilt.** It happened here: after the merge, `build.sh` stopped with `no sdk` and `local/` was gone. On btrfs without snapshots the data could not be recovered. ## Fix - Untrack `deps` and `local`. - Ignore them as `/deps` and `/local`, so a folder and a link are both ignored. A checkout that merges main with this commit on top never sees the links, because the bad commit and its removal cancel out in the same merge. So the sooner this lands, the fewer people lose data. ## For people who already pulled Before running anything else, check `ls -la deps local`. If they are links to `/home/goldfish/...`, the real folders are already gone: 1. Remove the links. 2. Run `./setup.sh` to rebuild `deps/`. 3. Restore `local/` from a backup or snapshot if you have one. It may be worth pinning a notice until this is merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
2280f88 (merge of #302) committed `deps` and `local` as symlinks to
/home/goldfish/Games/GTA6/Ports/VIctory-xmem/{deps,local}. `/deps/` and
`/local/` in .gitignore match only directories, so the links went in.

On a checkout where those folders exist (ignored, so git may overwrite
them), merging main removes them and puts the dangling links in their place:
the toolchain, Mesa and vkd3d builds, and saves, caches, logs and
menu.conf in local/. update.sh does that merge.

Untrack both and ignore them whether folder or link (`/deps`, `/local`).
A checkout that merges main with this commit never sees the links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 17:29:34 +00:00
github manually merged commit 7b38aded80 into gh-pr/339/base 2026-12-03 17:29:43 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-12-03 17:21 UTC · original

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T17:22:44.502454Z 7b38ade PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-12-03 17:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/339#issuecomment-7386385547) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"7b38aded807cdfa82cee25784a7608eb1a3a91ec","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-12-03T17:22:44.502454Z">2026-12-03T17:22:44.502454Z</relative-time> | `7b38ade` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠goldfishdev on GitHub · 2026-12-03 17:23 UTC · original

fuuuuuuckkkk my bad

**@⁠goldfishdev** on GitHub · 2026-12-03 17:23 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/339#issuecomment-7386430619) fuuuuuuckkkk my bad
Author
Owner

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

pro tip be careful with git add -A

**@⁠goldfishdev** on GitHub · 2026-12-03 17:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/339#issuecomment-7386467579) pro tip be careful with git add -A
This discussion has been locked. Commenting is limited to contributors.
No description provided.