xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.21k stars 790 forks source link

Imrpove missing package message #5882

Closed star-hengxing closed 3 days ago

star-hengxing commented 4 days ago

Is your feature request related to a problem? Please describe.

          We should probably improve xmake tooltips when it doesn't find something (based on levenshtein distance for example) instead of adding fake packages

Originally posted by @SirLynix in https://github.com/xmake-io/xmake-repo/issues/5691#issuecomment-2462449972

Describe the solution you'd like

https://github.com/xmake-io/xmake/blob/a9e8492bcc68823067d805a7ee666e99c08ad02f/xmake/modules/private/action/require/install.lua#L48-L54

Describe alternatives you've considered

No response

Additional context

No response

waruqi commented 3 days ago

https://github.com/xmake-io/xmake/pull/5889

note: the following packages were not found in any repository (check if they are spelled correc
tly):
  -> cpu_features, maybe cpu-features v0.9.0 in local-repo
  -> tbo, maybe tbb 2021.12.0 in local-repo