-
Notifications
You must be signed in to change notification settings - Fork 585
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
fake-cli 'tool path' install doesn’t seem to work on OS X/linux #2013
Comments
See a related comment I made here, but there seems to be a bug in the dotnet sdk around installing tools to a non-default path. |
Possibly related: https://github.com/dotnet/cli/issues/8829 |
The tool definitely installs (i get the directory structure with |
One of the bugs I linked mentions using a relative More info: https://stackoverflow.com/questions/7126580/expand-a-possible-relative-path-in-bash |
Yes, that worked for me: |
So the fix here should be to resolve the passed-in toolpath in the cmd and sh files (which naturally will need to be platform-specific) to make sure we use an absolute path for the toolpath |
Slack is reporting that relative paths work fine on windows, so this fix can just go in the |
Description
If I install fake via
dotnet tool install fake-cli --tool-path .fake
and then attempt to run.fake/fake run build.fsx
I get an error likeThe application to execute does not exist: '/opt/src/.fake/..//opt/src/.fake/.store/fake-cli/5.1.0/fake-cli/5.1.0/tools/netcoreapp2.1/any/fake-cli.dll'.
Repro steps
As above.
Expected behavior
Should run my fake build.
Actual behavior
Returns the error
The application to execute does not exist: '/opt/src/.fake/..//opt/src/.fake/.store/fake-cli/5.1.0/fake-cli/5.1.0/tools/netcoreapp2.1/any/fake-cli.dll'.
- it appears to be some sort of path issue (on unix at least). I have not tested on Windows.Known workarounds
Installing the tool globally (
dotnet tool install -g fake-cli
) works.Related information
The text was updated successfully, but these errors were encountered: