[Pkg-javascript-devel] Bug#952656: how to reproduce in docker

Paolo Greppi paolo.greppi at libpf.com
Thu Feb 27 07:48:00 GMT 2020


1. hanging:

docker run --rm -it debian:buster-slim /bin/bash
apt update         
apt install -y --no-install-recommends yarnpkg
yarnpkg add --verbose highlight.js

output:

yarn add v1.13.0
verbose 0.668 Checking for configuration file "/.npmrc".
verbose 0.668 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.669 Checking for configuration file "/usr/etc/npmrc".
verbose 0.669 Checking for configuration file "/root/.npmrc".
verbose 0.669 Checking for configuration file "/.npmrc".
verbose 0.67 Checking for configuration file "/.yarnrc".
verbose 0.67 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.671 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.671 Checking for configuration file "/root/.yarnrc".
verbose 0.671 Checking for configuration file "/.yarnrc".
verbose 0.675 current time: 2020-02-27T07:30:32.620Z
info No lockfile found.
verbose 0.805 Performing "GET" request to "https://yarnpkg.com/latest-version".
[1/4] Resolving packages...
verbose 1.088 Performing "GET" request to "https://registry.yarnpkg.com/highlight.js".
⠂ highlight.js

[hangs]

2. crashing:

docker run --rm -it debian:buster-slim /bin/bash
apt update         
apt install -y --no-install-recommends yarnpkg
cat > package.json
{
  "dependencies": {
    "highlight.js": "^9.18.1"
  }
}
^d
cat > yarn.lock
highlight.js@^9.18.1:
  version "9.18.1"
  resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.1.tgz#ed21aa001fe6252bb10a3d76d47573c6539fe13c"
  integrity sha512-OrVKYz70LHsnCgmbXctv/bfuvntIKDz177h0Co37DQ5jamGZLVmoCVMtjMtNZY3X9DrCcKfklHPNeA0uPZhSJg==
^d
yarnpkg install --verbose

output:

yarn install v1.13.0
warning package.json: No license field
verbose 0.616 Checking for configuration file "/.npmrc".
verbose 0.617 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.617 Checking for configuration file "/usr/etc/npmrc".
verbose 0.617 Checking for configuration file "/root/.npmrc".
verbose 0.618 Checking for configuration file "/.npmrc".
verbose 0.618 Checking for configuration file "/.yarnrc".
verbose 0.619 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.619 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.619 Checking for configuration file "/root/.yarnrc".
verbose 0.619 Checking for configuration file "/.yarnrc".
verbose 0.624 current time: 2020-02-27T07:40:15.667Z
verbose 0.723 Performing "GET" request to "https://yarnpkg.com/latest-version".
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
verbose 0.997 Performing "GET" request to "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.1.tgz".

also, the error is not reported: echo $? returns: 0

P.



More information about the Pkg-javascript-devel mailing list