Repository navigation
setup: detect release-bundled components as present (follows #230) - #231
Merged
Merged
Conversation
#209) Extend the #189 manifest-driven pre-install to the #209 must-install bundle: niugit (so 'niu setup' full distro no longer 5-fails on a gitless machine), ripgrep and fd, alongside gawk. Manifest-only change - the workflow's install/shim/verify plumbing is already generic and manifest-driven. No archive formats, no symlinks (hardlink shims only), no runtime downloads: assembly stays in CI. - scripts/release/preinstall.json: add niugit/ripgrep/fd entries with purposes, update the architecture note (ripgrep/fd carry arm64 artifacts and pre-install on both legs; niugit/gawk are x64-only) - tests/preinstall_manifest.rs: pin the four-package must-install bundle as a contract - release.yml: release body + step comment now disclose the bundle and the per-leg arm64 caveat CI artifact verification (usr/bin/git.exe, rg.exe, fd.exe in the staged package, --version smoke) is enforced by the existing verify step and lands with the next release run.
The release bundle (scripts/release/preinstall.json, #230/#209) ships gawk, niugit, ripgrep and fd into the winuxcmd tree as opt/<pkg> payloads plus usr/bin winuxcmd.exe shims. The setup wizard and doctor now count an existing payload or shim as present, so a bundled component is never reported missing, never re-recommended for install, and its aliases still expand: - bundled detection over the winuxcmd installation root (opt payload OR usr/bin shim, fail-open); EnvProbe annotates tool sources, and the environment summary labels bundled tools '(...)' plus a bundle row naming the packages actually shipped; - the Windows-only niu-git question is skipped and recorded as 'installed' when opt/niugit or the git shim is already there; - 'niu doctor' gains an advisory 'bundled tools' row with the honest source label (bundled vs system, none when the leg shipped without). Tests: payload/shim/missing/None detection, probe satisfaction and label non-shadowing, niu-git skip vs. still-offered, doctor row truth.
caomengxuan666
added a commit
that referenced
this pull request
Oct 10, 2026
- Delete docs/eco-harvest-resume-wt97b.md: point-in-time lane resume/handoff snapshot; the harvest/test line now runs on GitHub Actions (eco-harvest-ci.yml) and the diagnosis lives in git history. - CHANGELOG: add Unreleased entries for strip (#228), setup help/non-tty banner (#229), bundled niugit/ripgrep/fd + setup detection (#230/#231), PROMPT_COMMAND exit jump (#232), PS0 stderr (#233), bracketed paste (#234). Co-authored-by: docs-audit <[email protected]>
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #230 (and the leftover point 3 of #209): the release bundle now ships gawk/niugit/ripgrep/fd via
scripts/release/preinstall.json, but the setup wizard andniu doctorstill probed only PATH, so bundled components could be reported as missing or re-recommended for install.What changed
setup_wizard.rs): over the discovered winuxcmd installation root, a component counts as present when itsopt/<pkg>payload or anyusr/binshim (winuxcmd.exe hardlink) exists — fail-open, so an arm64 leg that skipped niugit/gawk simply stays undetected.rg (bundled)and adds abundlerow naming the packages actually shipped (shipped with the release/none).installedin wizard-answers.toml) when the bundle already ships niu-git — never re-offer installing what is already there. Without the bundle, behavior is unchanged (plain skip writes no lasting answer).niu doctor: new advisory rowbundled tools ...with the honest source label (shipped with the release, not system installs), ornonewhen the install ships nothing.Tests
niu doctorreportsbundled tools gawk niugit fdfrom the real opt/ + usr/bin layout, correctly omitting the absent ripgrep.Pre-existing unrelated failures in
plugins::distrostests (network git clone) reproduce on the base commit and are untouched by this PR.Closes #230's follow-up scope; does not modify the manifest itself.