ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.6k stars 965 forks source link

aws-sam-cli@1.89.0: decompress error #4920

Closed gquintana closed 1 year ago

gquintana commented 1 year ago
:\Users\gquintana>scoop install aws-sam-cli
Installing 'aws-sam-cli' (1.89.0) [64bit] from main bucket
Loading AWS_SAM_CLI_64_PY3.msi from cache
Checking hash of AWS_SAM_CLI_64_PY3.msi ... ok.
Extracting AWS_SAM_CLI_64_PY3.msi ... ERROR Exit code was 1603!
Failed to extract files from C:\Users\gquintana\scoop\apps\aws-sam-cli\1.89.0\AWS_SAM_CLI_64_PY3.msi.
Log file:
  ~\scoop\apps\aws-sam-cli\1.89.0\msi.log

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=aws-sam-cli%401.89.0%3a+decompress+error

msi.log file content:

=== Logging started: 03/07/2023  12:08:38 ===
Error 1304. Error writing to file: C:\Users\gquintana\scoop\apps\aws-sam-cli\1.89.0\_tmp\SourceDir\Amazon\AWSSAMCLI\runtime\Lib\site-packages\samcli\lib\init\templates\cookiecutter-aws-sam-hello-java-gradle\{{cookiecutter.project_name}}\HelloWorldFunction\src\main\java\helloworld\GatewayResponse.java. Verify that you have access to that directory.
=== Logging stopped: 03/07/2023  12:13:55 ===

I guess there is a problem with {{cookiecutter.project_name}} in the path

gquintana commented 1 year ago

It's related to the path length exceeding Windows 260 characters maximum. https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later

HUMORCE commented 1 year ago

Prompt about Long paths will appear if you are not enable it, when run a scoop checkup.

HUMORCE commented 1 year ago

See #4980