Skip to content

WIP: fix(wpm): install success line reports name, version and destination (#1363) - #1395

Merged
caomengxuan666 merged 2 commits into
mainfrom
fix/winx4-wpmux
Oct 26, 2026
Merged

caomengxuan666 merged 2 commits into
mainfrom
fix/winx4-wpmux

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fixes #1363 — on success wpm install printed only wpm: installed <name> (older builds: nothing at all), while the already-installed case did print a notice.

Change (install_package() success tail in src/commands/wpm.cpp): the success line now reads wpm: installed <name> <version> -> <destination>, destination = first entry of the same artifact_destination_paths() result the install receipt records (flat packages: <root>\usr\bin\<cmd>.exe). Still routed through progress(): stdout normally, stderr under --json (JSON payload unchanged). Already-installed and failure outputs untouched; dry-run path untouched.

i18n: English fallback for command.wpm.status.installed updated in source + scripts/i18n_batch.py MANUAL_MESSAGES; English catalog regenerated via i18n_batch.py extract. zh-CN synced in unixwin/winuxcmd-i18n (companion PR, VERSION 0.6.20 → 0.6.21); i18n_batch.py validate → valid.

Regression: new unit test wpm_install_success_line_reports_version_and_destination_1363 (success line carries version + destination; second install keeps the already-installed notice and does not repeat the success line). Existing installed jq substring assertions all still hold.

Verification status: local mingw+Wine harness repro is queued behind the machine-wide build slot (systemic congestion); this draft goes up for visibility per maintainer rule and will be updated with the repro output + marked ready once the build lands. clang-format pass on the two touched C++ files is also owed (no clang-format on the build VM).

)

A successful 'wpm install' printed only 'wpm: installed <name>' (and
nothing at all in older builds), leaving the user unable to tell what
landed where, while the already-installed case did print a notice.
The success line now reads 'wpm: installed <name> <version> ->
<destination>', with the destination taken from the same
artifact_destination_paths() result the install receipt records.
English fallback for command.wpm.status.installed updated in source
and in scripts/i18n_batch.py MANUAL_MESSAGES; zh-CN catalog synced
in winuxcmd-i18n (0.6.21).
New unit test wpm_install_success_line_reports_version_and_destination_1363:
first install's stdout carries 'installed jq 1.0.0' and the
usr\bin\jq.exe destination with the payload in place; a second
install keeps the already-installed notice and does not repeat the
success line.
@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 26, 2026 12:21
@caomengxuan666
caomengxuan666 merged commit 2fe219f into main Oct 26, 2026
8 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/winx4-wpmux branch October 30, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ux] wpm install prints nothing on success — silent install

1 participant