Repository navigation
WIP: fix(wpm): install success line reports name, version and destination (#1363) - #1395
Merged
Merged
Conversation
) 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.
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.
Fixes #1363 — on success
wpm installprinted onlywpm: installed <name>(older builds: nothing at all), while the already-installed case did print a notice.Change (
install_package()success tail insrc/commands/wpm.cpp): the success line now readswpm: installed <name> <version> -> <destination>, destination = first entry of the sameartifact_destination_paths()result the install receipt records (flat packages:<root>\usr\bin\<cmd>.exe). Still routed throughprogress(): 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.installedupdated in source +scripts/i18n_batch.pyMANUAL_MESSAGES; English catalog regenerated viai18n_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). Existinginstalled jqsubstring 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).