Find the launcher executable in CARGO_TARGET_DIR #4846

Open
github-bot wants to merge 1 commit from github-bot/gh-4845 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 11:14 UTC · original
andrewpozdnakov7-jpg:codex2/fix/launcher-cargo-target-dir → main · +11 −3 · 1 files · 1 commits · open

What it changes

play-nvidia.ps1 now looks for the selected build profile under CARGO_TARGET_DIR when it is set. It resolves a relative value from the repository, where the script runs Cargo. The launcher uses the same executable path before and after building.

With a custom target directory, the current script requests another build and then reports a missing executable even when Cargo has already built it.

How it was tested

  • Ran the real launcher on Windows PowerShell 5.1 with a prebuilt stub that accepts warm --used. Main 5fabb46e and release v2026.11.30.03 requested a build and exited 1 with the stub already in a custom target directory.
  • daa1d78f2b6cb595fe314a5328bb5ea475eccb7c found the stub with an absolute target directory, a repository-relative target directory, and the default target directory. All three runs exited 0 without calling Cargo, with the caller starting outside the repository.
  • cargo xtask policy --staged accepted the launcher change. This fixture covers executable lookup.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched open PRs and issues for custom Cargo target directories. #4817 covers literal repository paths, which also use literal executable checks.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 11:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4845) `andrewpozdnakov7-jpg:codex2/fix/launcher-cargo-target-dir` → `main` · +11 −3 · 1 files · 1 commits · open ## What it changes `play-nvidia.ps1` now looks for the selected build profile under `CARGO_TARGET_DIR` when it is set. It resolves a relative value from the repository, where the script runs Cargo. The launcher uses the same executable path before and after building. With a custom target directory, the current script requests another build and then reports a missing executable even when Cargo has already built it. ## How it was tested - Ran the real launcher on Windows PowerShell 5.1 with a prebuilt stub that accepts `warm --used`. Main `5fabb46e` and release `v2026.11.30.03` requested a build and exited 1 with the stub already in a custom target directory. - `daa1d78f2b6cb595fe314a5328bb5ea475eccb7c` found the stub with an absolute target directory, a repository-relative target directory, and the default target directory. All three runs exited 0 without calling Cargo, with the caller starting outside the repository. - `cargo xtask policy --staged` accepted the launcher change. This fixture covers executable lookup. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Searched open PRs and issues for custom Cargo target directories. #4817 covers literal repository paths, which also use literal executable checks. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 11:15:34 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4846/head:github-bot/gh-4845'
git switch 'github-bot/gh-4845'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4845'
git switch 'github-bot/gh-4845'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4845'
git switch 'github-bot/gh-4845'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4845'
git switch 'main'
git merge --squash 'github-bot/gh-4845'
git switch 'main'
git merge --ff-only 'github-bot/gh-4845'
git switch 'main'
git merge 'github-bot/gh-4845'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!4846
No description provided.