Source: node-configstore
Version: 6.0.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220412 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>>'
> mjs2cjs index.js
> 
> index.js → ./index.cjs...
> (!) Entry module "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 "index.js" to use named exports 
> only.
> https://rollupjs.org/guide/en/#outputexports
> index.js
> created ./index.cjs in 37ms
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
>       mkdir -p node_modules
>       ln -s ../. node_modules/configstore
>       /bin/sh -ex debian/tests/pkg-js/test
> + set -e
> + mktemp -d
> + HOME=/tmp/tmp.WKFWY7IOID
> + mkdir /tmp/tmp.WKFWY7IOID/.config
> + export HOME
> + jest --ci test.js
> jest-haste-map: Haste module naming collision: configstore
>   The following files share their name; please adjust your hasteImpl:
>     * <rootDir>/.pc/export-commonjs-files.patch/package.json
>     * <rootDir>/package.json
> 
> FAIL ./test.js
>   ● Test suite failed to run
> 
>     Jest encountered an unexpected token
> 
>     Jest failed to parse a file. This happens e.g. when your code or its 
> dependencies use non-standard JavaScript syntax, or when Jest is not 
> configured to support such syntax.
> 
>     Out of the box Jest supports Babel, which will be used to transform your 
> files into valid JS based on your Babel configuration.
> 
>     By default "node_modules" folder is ignored by transformers.
> 
>     Here's what you can do:
>      • If you are trying to use ECMAScript Modules, see 
> https://jestjs.io/docs/ecmascript-modules for how to enable it.
>      • If you are trying to use TypeScript, see 
> https://jestjs.io/docs/getting-started#using-typescript
>      • To have some of your "node_modules" files transformed, you can specify 
> a custom "transformIgnorePatterns" in your config.
>      • If you need a custom transformation specify a "transform" option in 
> your config.
>      • If you simply want to mock your non-JS modules (e.g. binary assets) 
> you can stub them out with the "moduleNameMapper" config option.
> 
>     You'll find more details and examples of these config options in the docs:
>     https://jestjs.io/docs/configuration
>     For information about custom transformations, see:
>     https://jestjs.io/docs/code-transformation
> 
>     Details:
> 
>     /usr/share/nodejs/xdg-basedir/index.js:1
>     
> ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import
>  os from 'os';
>                                                                               
>         ^^^^^^
> 
>     SyntaxError: Cannot use import statement outside a module
> 
>       1372 |     try {
>       1373 |       const scriptFilename = 
> this._resolver.isCoreModule(filename) ? `jest-nodejs-core-${filename}` : 
> filename;
>     > 1374 |       return new 
> (_vm().Script)(this.wrapCodeInModuleWrapper(scriptSource), {
>            |              ^
>       1375 |         displayErrors: true,
>       1376 |         filename: scriptFilename,
>       1377 |         // @ts-expect-error: Experimental ESM API
> 
>       at Runtime.createScriptFromCode 
> (../../../usr/share/nodejs/jest-runtime/build/index.js:1374:14)
>       at Object.<anonymous> (index.js:4:1)
> 
> Test Suites: 1 failed, 1 total
> Tests:       0 total
> Snapshots:   0 total
> Time:        1.483 s
> Ran all test suites matching /test.js/i.
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/node-configstore_6.0.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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.

Reply via email to