-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool with command name dotnet-foo is not available as cli verb #9022
Comments
@dasMulli thanks for the bug report. I assume this is a global tool? And also that your failing command there is for |
Yes the repro was supposed to be a CLI verb to be packed and installed as global tool. |
Works just fine on windows, just not when using all the defaults on Mac. (didn't try any linux) |
as @dasMulli stated, resolver should find dotnet-X on the PATH and make it dotnet X. And due to mac path_helper limitation, what ends up on the PATH start with "~/" (Linux should be fine). Let me see if we can do something on the command resolver. |
This will be a problem for dotnet-watch, the walk around is adding path by bash_profile, which is the instruction if the user install via a tar.gz. Copy paste the following to shell
|
Here is the problem it simply do a join and search. It won't expend the path with ~/ or $HOME |
exactly. a bit earlier the search paths are calculated it may make sense to walk over the list again in *nix to do a |
Steps to reproduce
dotnet-greet
, observe that the program runsdotnet greet
, observe that the program does not runWorkaround:
Expected behavior
Tools named
dotnet-{x}
should be available as CLI verb to be used asdotnet {x}
.Actual behavior
The CLI does not search
PATH
entries prefixed with~/
for candidate executables and fails to run the global tool as CLI verb.Environment data
dotnet --info
output:cc @wli3 @livarcocc
The text was updated successfully, but these errors were encountered: