question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing tool to custom tool-path fails when trying to access it

See original GitHub issue

I’m trying to install a custom tool during azure pipeline however if fails to pick up the tool. I’ve tried several options but they all fail at execution stage. I’m trying to use the tool-path because without it step 2 fails with cannot find the executable

Steps to reproduce

- task: DotNetCoreCLI@2
  displayName: 'Install Stryker'
  continueOnError: true
  inputs:
    command: custom
    custom: tool
    vstsFeed: ${{ parameters.Build_Vsts_Feed }}
    arguments: 'install dotnet-stryker --tool-path ~/tools'
- script: |    
    cd ${{ parameters.Unit_Test_Folder }}
    dotnet ~/tools/stryker --project-file=${{ parameters.Stryker_Project }}.csproj
  displayName: 'Run Stryker tests against ${{ parameters.Stryker_Project }}'

Expected behavior

Tool should install and be executable

Actual behavior

Output from Installation task

sr/bin/dotnet tool install dotnet-stryker --tool-path ~/tools 
You can invoke the tool using the following command: dotnet-stryker |  
Tool 'dotnet-stryker' (version '0.11.0') was successfully installed.

Output from execution task No executable found matching command "dotnet-/home/vsts/tools/stryker"

No matter how i define tool-path it does the above behaviour of merging dotnet- to the path rather than /home/vsts/tools/dotnet-stryker

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Jun 21, 2019

@wli3 can you take a look?

0reactions
vincentvanderwaltcommented, Jun 22, 2019

@wli3 Thank you for the response. I can confirm it’s now working for me. Much appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with custom tool file or data? - Industrial Forum
I am trying to create a custom tool profile for a small ... I get a warning message that says "Problems with custom...
Read more >
"Unable to execute the tool" when clicking on a Tool ...
Modify the 'Registered Tool Path' in the Registry. Press WINDOWS-R on the keyboard to bring up the Run window, enter REGEDIT.EXE and click...
Read more >
Error when creating toolpath - Fusion 360 - CAM
Basic troubleshooting technique would be to start with defining a simple toolpath - the outline cut for instance and then adding one object/path ......
Read more >
dotnet tool install command - .NET CLI
To install a global tool in a custom location, use the --tool-path option. To install a local tool, omit the --global and --tool-path...
Read more >
Troubleshooting Custom Toolchain Validation - MATLAB & ...
Use your system setup to add the toolchain installation directory to system environment path. Otherwise, replace '' with the absolute path of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found