Open hdhoang opened 1 year ago
This is related to #116. In that issue there are multiple hits on tarballs are found and tool
can't deal with that (yet). There has not been a decision on how to implement this issue yet either but glob
and regex
are the currently on the table. I think both of those will also solve this issue.
I don't expect the list of binaries to be large (e.g. 20+ entries). In that case, I'd propose to support an array of strings in the exe_name
field. So, for nushell
it could look like this:
exe_name = [
"nu_plugin_custom_values",
"nu_plugin_example",
"nu_plugin_gstat",
"nu_plugin_inc",
"nu_plugin_query",
]
The semantics of this is to copy everything that matches any of the strings in the array.
I don't like globs and regexes for this because they have the potential to match and copy lots of unexpected stuff. For binaries, we really want to copy only a few specific files and their names don't change too often.
hi, nushell comes with some plugins as separate executables:
(let's ignore less.exe for windows)
I suppose we can use usual globbing
or additional entries
or explicit prefix-match
This globbing, the checksum-file ignoring, and (TBD) issue about shellcheck make me think adding
glob
, is more conventional.wdyt?