SonarSource/sonar-scanner-msbuild

Releases produce zip files with a backslash as a separator

martin-strecker-sonarsource opened this issue · 0 comments

Starting with release version 7.0 the zip files of the release contain a \ as a path separator. The files are created via Compress-Archive in these places:

Compress-Archive -Path "$destination\*" -DestinationPath "$destination.zip" -Force

Compress-Archive -Path "$destination\*" -DestinationPath "$destination.zip" -Force

The zips contain backslashes as a file separator, which isn't allowed in zip files. This is a known issue with the Compress-Archive command on certain versions of powershell

PowerShell/Microsoft.PowerShell.Archive#54
icsharpcode/SharpZipLib#617 (comment)

When unzip is called on linux it produces this warning:

unzip -o -q sonar-scanner-7.1.0.95705-net.zip
warning:  sonar-scanner-7.1.0.95705-net.zip appears to use backslashes as path separators

The return code of unzip is 1