[Pkg-javascript-devel] Bug#998258: node-liftoff: FTBFS: TypeError: isPlainObject is not a function

Andreas Beckmann anbe at debian.org
Mon Nov 1 18:06:20 GMT 2021


Source: node-liftoff
Version: 3.1.0-5
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

node-liftoff/experimental recently started to FTBFS with

  dh_auto_build --buildsystem=nodejs
No build command found, searching known files
No build command found, searching known files
No build command found, searching known files
   dh_auto_test --buildsystem=nodejs
        ln -s ../. node_modules/liftoff
        /bin/sh -ex debian/tests/pkg-js/test
+ mocha -t 20000 -b -R spec test/index


  Liftoff
    buildEnvironment
      undefined should locate local module using cwd if no config is found
      undefined should locate global module using NODE_PATH if defined
      undefined if cwd is explicitly provided, don't use search_paths
      undefined should find case sensitive configPath
      - should find module in the directory next to config
      - should require the package sibling to the module
      undefined should set cwd to match the directory of the config file as long as cwd wasn't explicitly provided
      for developing against yourself
        - should find and load package.json
        - should clear modulePackage if package.json is of different project
        - should use `index.js` if `main` property in package.json does not exist
    prepare
      undefined should set the process.title to the moduleName
      undefined should return early if completions are available and requested
      undefined should call prepare with liftoff instance as context
      undefined should pass environment to first argument of prepare callback
      undefined should throw if 2nd arg is not a function
    execute
      undefined should pass environment to first argument of execute callback
      undefined should throw if 2nd arg is not a function
      - should skip respawning if process.argv has no values from v8flags in it
      - should respawn if process.argv has values from v8flags in it
      - should throw if v8flags is a function and it causes an error
      - should respawn if v8flag is set by forcedFlags
      - should respawn if v8flag is set by both cli flag and forcedFlags
      - should emit a respawn event if a respawn is required
      - should respawn if process.argv has v8flags with values in it
      - should respawn if v8flags is empty but forcedFlags are specified
    requireLocal
      - should attempt pre-loading local modules if they are requested
      - should attempt pre-loading a local module if it is requested
      - should attempt pre-loading local modules but fail
      - should pre-load a local module only once even if be respawned
      - should emit `require` with the name of the module and the required module
      undefined should emit `requireFail` with an error if a module can't be found.
    configFiles
      undefined should be empty if not specified
      1) should find multiple files if specified


  14 passing (49ms)
  18 pending
  1 failing

  1) Liftoff
       configFiles
         should find multiple files if specified:
     TypeError: isPlainObject is not a function
      at expandPath (/usr/share/nodejs/fined/index.js:19:8)
      at fined (/usr/share/nodejs/fined/index.js:14:22)
      at /build/node-liftoff-3.1.0/index.js:122:21
      at /build/node-liftoff-3.1.0/object-map/index.js:18:19
      at /usr/lib/nodejs/for-own/index.js:16:17
      at forIn (/usr/lib/nodejs/for-in/index.js:12:12)
      at forOwn (/usr/lib/nodejs/for-own/index.js:14:3)
      at module.exports (object-map/index.js:17:3)
      at /build/node-liftoff-3.1.0/index.js:121:14
      at /build/node-liftoff-3.1.0/object-map/index.js:18:19
      at /usr/lib/nodejs/for-own/index.js:16:17
      at forIn (/usr/lib/nodejs/for-in/index.js:12:12)
      at forOwn (/usr/lib/nodejs/for-own/index.js:14:3)
      at module.exports (object-map/index.js:17:3)
      at Liftoff.buildEnvironment (index.js:119:19)
      at Liftoff.prepare (index.js:171:18)
      at Context.<anonymous> (test/index.js:410:11)
      at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:394:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:338:7)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:681:10)
      at /usr/share/nodejs/mocha/lib/runner.js:804:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:596:14)
      at /usr/share/nodejs/mocha/lib/runner.js:606:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:489:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:574:5)
      at processImmediate (internal/timers.js:461:21)



dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:5: binary] Error 25


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-liftoff_3.1.0-5.log.gz
Type: application/gzip
Size: 18699 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211101/83be6ac0/attachment.gz>


More information about the Pkg-javascript-devel mailing list