When the variable MINGW_PACKAGE_PREFIX is not set, ...
the pacboy -S <name>:p returns the pacman usage manual
which renders the newcomers clueless
Reason being:
this above command "translates" to pacman --color auto --sync -<name> i.e. <leading dash><name>
which is erraneous, hence returning the manual
Proposed solution
Instead, a descriptive message should be shown.
this checking is possible, as pacboy also recognises pacboy --help and returns did you mean 'pacboy help'?
Something like:
The variable `MINGW_PACKAGE_PREFIX` is not set.
Suggestions:
- Launch shell in a different environment (i.e. use a different launcher)
- Specify the command for a particular package prefix
See `pacboy help` for usage instructions.
Console logs
$ pacboy sync debug helix:p
:: Executing pacman --color auto --sync -helix...
usage: pacman {-S --sync} [options] [package(s)]
options:
-b, --dbpath <path> set an alternate database location
... MORE ...
$ pacboy sync debug helix:u
:: Executing pacman --color auto --sync mingw-w64-ucrt-x86_64-helix...
resolving dependencies...
looking for conflicting packages...
... MORE ...
Originally posted by @me in https://github.com/msys2/MSYS2-packages/issues/3457#issuecomment-1368406689
Summary of problem
MINGW_PACKAGE_PREFIX
is not set, ...pacboy -S <name>:p
returns thepacman
usage manualReason being:
pacman --color auto --sync -<name>
i.e.<leading dash><name>
Proposed solution
pacboy --help
and returnsdid you mean 'pacboy help'?
Something like:
Console logs
Envrionment