Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chocolatey Installer generates wrong filename (inconsistent naming: underscore vs hyphen/dash) #146

Closed
360path opened this issue Apr 15, 2020 · 2 comments

Comments

@360path
Copy link

360path commented Apr 15, 2020

According to the docs (https://sass-lang.com/documentation/cli/migrator) the command is supposed to be

sass-migrator <migration> <entrypoint.scss...>

But after installing the migrator through Chocolatey on Windows and calling sass-migrator I get the following error:

Cannot find file at '..\lib\sass-migrator\tools\sass_migrator.bat' (C:\ProgramData\chocolatey\lib\sass-migrator\tools\sass_migrator.bat). This usually indicates a missing or moved file.

There is a file called C:\ProgramData\chocolatey\lib\sass-migrator\tools\sass-migrator.bat though. Renaming it to sass_migrator.bat solves the problem.

Also, in the usage description it says:

Usage: sass_migrator <migrator> [options] <entrypoint.scss...>

which is not what the command is supposed to be according to the online docs.

I reckon, the error is in tool/grind/chocolatey.dart in Line 36/37 or in package/chocolatey/chocolateyInstall.ps1 and package/chocolatey/chocolateyUninstall.ps1.

@liangpure
Copy link

after two years, I rename the filename to sass_migrator. But still use sass-migrator, it's worked.

@jathak
Copy link
Member

jathak commented Apr 11, 2022

The issue here is that we haven't deployed the migrator to Chocolatey in a long time, so the version there is very old. I've filed #222 to track re-enabling it.

@jathak jathak closed this as completed Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants