FS#49297 - [nodejs-less] less compiler has optional dependency on 'request

Attached to Project: Community Packages
Opened by Mladen Milinkovic (maxrd2) - Wednesday, 11 May 2016, 12:56 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Tuesday, 07 June 2016, 09:06 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
less compiler has optional dependency on 'request' but it can't be installed as arch package.
Can you please provide it inside nodejs-less or as a separate package and make it an optional dependency.

Additional info:
local/nodejs-less 2.7.1-1

Steps to reproduce:
Try compiling following less code:
@import (less) url(http://example.com/somefile.less);
It will fail with if npm 'request' package is not installed:
FileError: optional dependency 'request' required to import over http(s)
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Tuesday, 07 June 2016, 09:06 GMT
Reason for closing:  Won't implement
Comment by Mladen Milinkovic (maxrd2) - Wednesday, 11 May 2016, 12:58 GMT
sorry for not specifying summary.. can't edit it anymore :-/
Comment by Jelle van der Waa (jelly) - Sunday, 22 May 2016, 21:20 GMT
Updated the title for you.
Comment by Massimiliano Torromeo (mtorromeo) - Tuesday, 07 June 2016, 09:05 GMT
All optional dependencies are already installed by default, but request is not listed there [1].
It may be an optional dependency of another optional dependency. Anyway if it's not listed in less's package.json it won't be installed.
You may create a package on the AUR for nodejs-request and install it on your arch or report it upstream if you think it should be included by default but I won't modify the package.

[1] https://github.com/less/less.js/blob/master/package.json

Loading...