Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Aria2 support for download action #38

Open
Ash258 opened this issue Jul 20, 2019 · 5 comments
Open

Aria2 support for download action #38

Ash258 opened this issue Jul 20, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request future-release

Comments

@Ash258
Copy link
Owner

Ash258 commented Jul 20, 2019

Aria2 usage is now initialized. There are few problems that needs to be investigated

Starting download with aria2 ...
Exception caught
Exception: [download_helper.cc:563] errorCode=1 Failed to open the file /SCOOP/cache\xmake.txt, cause: File not found or it is a directory

ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://github.com/xmake-io/xmake/releases/download/v2.2.7/xmake-v2.2.7.win64.zip
    referer=https://github.com/xmake-io/xmake/releases/download/v2.2.7/
    dir=/SCOOP/cache
    out=xmake#DL#https_github.com_xmake-io_xmake_releases_download_v2.2.7_xmake-v2.2.7.win64.zip

ERROR & '/usr/bin/aria2c' --input-file='/SCOOP/cache\xmake.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/6.2 (Windows NT 4.9; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=1 --continue
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
+     & "$env:COMSPEC" /c $cmd
+ CategoryInfo          : InvalidOperation: (:String) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression
 

Please try again or create a new issue by using the following link and paste your console output:
https:////
PS /> ls /SCOOP/cache/
xmake.txt
PS /> cat /SCOOP/cache/xmake.txt
https://github.com/xmake-io/xmake/releases/download/v2.2.7/xmake-v2.2.7.win64.zip
    referer=https://github.com/xmake-io/xmake/releases/download/v2.2.7/
    dir=/SCOOP/cache
    out=xmake#DL#https_github.com_xmake-io_xmake_releases_download_v2.2.7_xmake-v2.2.7.win64.zip
@Ash258 Ash258 added enhancement New feature or request future-release labels Jul 20, 2019
@Ash258 Ash258 self-assigned this Jul 20, 2019
@Ash258
Copy link
Owner Author

Ash258 commented Jul 20, 2019

Problem is mix of / and \ in file param

image

@Ash258
Copy link
Owner Author

Ash258 commented Jul 20, 2019

image

@Ash258
Copy link
Owner Author

Ash258 commented Jul 20, 2019

As soon as upstream is fixed I need to think about new way of returning broken URLs

@Ash258
Copy link
Owner Author

Ash258 commented Oct 12, 2019

Upstream change is in develop

@Ash258 Ash258 removed the upstream label Oct 22, 2019
@Ash258 Ash258 removed this from the 1.0.0 milestone Oct 26, 2019
@Ash258
Copy link
Owner Author

Ash258 commented Oct 26, 2019

This could be implemented after Install refactor. Current aria2 download function is not optimal and aria2 factor is negligible. Usually this is due to taken down of artifacts, network issues, ....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request future-release
Projects
None yet
Development

No branches or pull requests

1 participant