[Pkg-javascript-devel] Bug#1002228: node-rollup-plugin-buble: FTBFS: dh_auto_test: error: cd ./legacy && sh -ex ../debian/nodejs/legacy/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:34:16 GMT 2021


Source: node-rollup-plugin-buble
Version: 0.21.3+repack+~0.19.8-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/legacy/build
> 	cd ./legacy && sh -ex ../debian/nodejs/legacy/build
> + rollup -c
> 
> src/index.js → dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js...
> (!) Entry module "src/index.js" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.js" to use named exports only.
> https://rollupjs.org/guide/en/#outputexports
> src/index.js
> created dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js in 16ms
> cd packages/buble && rollup -c
> 
> src/index.ts → dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js...
> (!) Entry module "src/index.ts" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.ts" to use named exports only.
> https://rollupjs.org/guide/en/#outputexports
> src/index.ts
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'buble' or its corresponding type declarations.
> src/index.ts: (1:27)
> 
> 1 import { transform } from 'buble';
>                             ~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'rollup' or its corresponding type declarations.
> src/index.ts: (2:24)
> 
> 2 import { Plugin } from 'rollup';
>                          ~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module '@rollup/pluginutils' or its corresponding type declarations.
> src/index.ts: (3:30)
> 
> 3 import { createFilter } from '@rollup/pluginutils';
>                                ~~~~~~~~~~~~~~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'transforms' does not exist on type 'RollupBubleOptions'.
> src/index.ts: (9:67)
> 
> 9   const transformOptions = { ...options, transforms: { ...options.transforms, modules: false } };
>                                                                     ~~~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'code' implicitly has an 'any' type.
> src/index.ts: (14:15)
> 
> 14     transform(code, id) {
>                  ~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'id' implicitly has an 'any' type.
> src/index.ts: (14:21)
> 
> 14     transform(code, id) {
>                        ~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS2571: Object is of type 'unknown'.
> src/index.ts: (20:9)
> 
> 20         e.plugin = 'buble';
>            ~
> 
> src/index.ts: (21:14)
> 
> 21         if (!e.loc) e.loc = {};
>                 ~
> 
> src/index.ts: (21:21)
> 
> 21         if (!e.loc) e.loc = {};
>                        ~
> 
> src/index.ts: (22:9)
> 
> 22         e.loc.file = id;
>            ~
> 
> src/index.ts: (23:9)
> 
> 23         e.frame = e.snippet;
>            ~
> 
> src/index.ts: (23:19)
> 
> 23         e.frame = e.snippet;
>                      ~
> 
> (!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
> created dist/rollup-plugin-buble.es.js, dist/rollup-plugin-buble.cjs.js in 349ms
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules/\@rollup
> 	ln -s ../../packages/buble node_modules/\@rollup/plugin-buble
> 	cd ./legacy && sh -ex ../debian/nodejs/legacy/test
> + mocha
> 
> 
>   rollup-plugin-buble
>     1) transforms files
> 
> 
>   0 passing (35ms)
>   1 failing
> 
>   1) rollup-plugin-buble
>        transforms files:
> 
>       AssertionError [ERR_ASSERTION]: 'function main () { return 42; }\n\nexport { main as default };\n' == 'function main () { return 42; }\n\nexport default main;\n'
>       + expected - actual
> 
>        function main () { return 42; }
>        
>       -export { main as default };
>       +export default main;
>       
>       at /<<PKGBUILDDIR>>/legacy/test/test.js:30:12
> 
> 
> 
> dh_auto_test: error: cd ./legacy && sh -ex ../debian/nodejs/legacy/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2021/12/20/node-rollup-plugin-buble_0.21.3+repack+~0.19.8-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list