The installation or upgrade of the languagetool package works fine with FOSS of Chocolatey CLI, but throws an error using a Business license. The issue seems to be around Install-ChocolateyZipPackage which finds files to extract (and extracts them) with the FOSS version.
Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\tools" -y "C:\Users\Paul\AppData\Local\Temp\chocolatey\languagetool\6.0\LanguageTool-6.0.zip" `"languagetool-6.0`"]Note the backticks in the folder name to extract in the Licensed version:
`"languagetool-6.0`"But not the FOSS version:
"languagetool-6.0".
I ran both of those command directly on the command line and they both worked as expected. However, I don't know the context these cmdlets run in so that backtick difference may matter to them and not to running it directly. As I said, this may not be the issue, I just wanted to highlight the difference I noticed.
Steps To Reproduce
With a business Licensed version of Chocolatey CLI, run choco install languagetool and see it fail.
With a FOSS version of Chocolatey CLI, run choco install languagetool and see the package installed.
Change the 7Zip command that runs as part of the Licensed Get-ChocolateyUnzip PowerShell helper to not have backticks when specifying a specificFolder.
Related Issues and Tickets
None.
Done Checklist
[x] Automated tests have been added to cover this bug.
[x] Manual tests have been added to cover this bug.
┆Issue is synchronized with this Gitlab issue by Unito
┆Milestone: 6.0.0
Description
The installation or upgrade of the
languagetool
package works fine with FOSS of Chocolatey CLI, but throws an error using a Business license. The issue seems to be aroundInstall-ChocolateyZipPackage
which finds files to extract (and extracts them) with the FOSS version.But does not find any files with the Licensed version:
FOSS:
Licensed:
I ran both of those command directly on the command line and they both worked as expected. However, I don't know the context these cmdlets run in so that backtick difference may matter to them and not to running it directly. As I said, this may not be the issue, I just wanted to highlight the difference I noticed.
Steps To Reproduce
choco install languagetool
and see it fail.choco install languagetool
and see the package installed.Output Log
oss-install-languagetool.loglicensed-install-languagetool.log
Workarounds
None that I am aware of.
Proposed Solution
Change the 7Zip command that runs as part of the Licensed
Get-ChocolateyUnzip
PowerShell helper to not have backticks when specifying aspecificFolder
.Related Issues and Tickets
None.
Done Checklist
┆Issue is synchronized with this Gitlab issue by Unito ┆Milestone: 6.0.0