Open HeikeHofmann opened 6 months ago
Cake .NET Tool
4.0.0
Windows
64-Bit
Azure DevOps
we want to use Cake.Sonar in the own project, where the SonarScanner DotNet Tool is used. The execution can be found here: https://github.com/cake-contrib/Cake.Sonar/blob/f1062a4ceeeeaf58bf662af6b6b478ed2d50119a/src/Cake.Sonar/SonarRunner.cs#L56C23-L56C23
But we have now an empty Space in the path and the execution will fail, because the execution will not append with Quotation Markes. Here is the issue in the Cake.Tool code:
builder.Append(command);
line 63 of https://github.com/cake-build/cake/blob/main/src/Cake.Common/Tools/DotNet/Tool/DotNetToolRunner.cs
This is the error then:
The code should be:
builder.AppendQuoted(command);
Add Cake.Sonar and use the Plugin.
Any other dotnet tool and empty space should also be failing with Windows Environment.
No response
Prerequisites
Cake runner
Cake .NET Tool
Cake version
4.0.0
Operating system
Windows
Operating system architecture
64-Bit
CI Server
Azure DevOps
What are you seeing?
we want to use Cake.Sonar in the own project, where the SonarScanner DotNet Tool is used. The execution can be found here: https://github.com/cake-contrib/Cake.Sonar/blob/f1062a4ceeeeaf58bf662af6b6b478ed2d50119a/src/Cake.Sonar/SonarRunner.cs#L56C23-L56C23
But we have now an empty Space in the path and the execution will fail, because the execution will not append with Quotation Markes. Here is the issue in the Cake.Tool code:
builder.Append(command);
line 63 of https://github.com/cake-build/cake/blob/main/src/Cake.Common/Tools/DotNet/Tool/DotNetToolRunner.cs
This is the error then:![image](https://github.com/cake-build/cake/assets/51440034/ebf75e93-be10-4c79-8a85-5e28a6423ce1)
What is expected?
The code should be:
builder.AppendQuoted(command);
Steps to Reproduce
Add Cake.Sonar and use the Plugin.
Any other dotnet tool and empty space should also be failing with Windows Environment.
Output log
No response