The checkVersionAvailability()
in ckeditor5-dev-release-tools
does not work on Windows
#17191
Labels
package:dev
squad:platform
Issue to be handled by the Platform team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
The
checkVersionAvailability()
inckeditor5-dev-release-tools
does not work on Windows, because its arguments are wrapped inside'
byshellEscape()
. Example command that is generated by this util looks like:Then, it is passed down to
shelljs
as:which throws an error:
See https://github.com/ckeditor/ckeditor5-dev/blob/0e35f4972c7c8dfdef8055f9b0dbc0cca46003d1/packages/ckeditor5-dev-release-tools/lib/utils/checkversionavailability.js#L22
It works well on non-Windows environments.
Proposed solution
To make all npm-related commands cross-platform compatible, we could use either
npm
orpacote
packages to fetch the required data from npm registry instead of calling shell command.The text was updated successfully, but these errors were encountered: