On 3/1/22 2:34 AM, Jonas Smedegaard wrote:
Simple solution is to create a temporary dir; or use $AUTOPKGTEST_TMP (latter is best)I have attached a patch that fixes this, please apply and upload. Hope that helps.Thanks, very helpful. Do you happen to know where this behaviour is documented upstream?
Unfortunately not. Actually, a few months back, I saw this in another package
(IIRC, that was yours too)
I just fiddled around a bit and found out back then.
I "guess" it might not be even documented since AFAICS, the usual upstream way
of vendoring
npm/yarn modules would not do a 'require' locally w/o building the package,
'within the source code itself'
that'd be quite unusual to do.
The way it happens in debian with ('/usr/share' ; '/usr/lib/') especially with
the autopkgtest environment
is somewhat special/different.
I ask because I experience another possibly similar error with failure locating chai for node-eslint-visitor-keys 3.3.0+~0.0.51, where it is not an option to switch directory.
I think in such a case you can do either: a) Remove package.json/interfering stuff in autopkgtest environment and then run a 'require' b) Copy relevant/required files/dirs to $AUTOPKGTEST_TMP, change directory and then do a 'require' there Hope that helps again. Regards, Nilesh
OpenPGP_signature
Description: OpenPGP digital signature
-- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
