openSUSE / obs-service-node_modules

MIT License
7 stars 11 forks source link

Unexpected module key: make #43

Open bnavigator opened 5 days ago

bnavigator commented 5 days ago

Trying to use this for bokeh:

Running source_service 'node_modules' ...
Traceback (most recent call last):
  File "/usr/lib/obs/service/node_modules", line 630, in <module>
    sys.exit(main(args))
             ^^^^^^^^^^
  File "/usr/lib/obs/service/node_modules", line 382, in main
    process_packagelock_file(js)
  File "/usr/lib/obs/service/node_modules", line 347, in process_packagelock_file
    collect_v3_deps(js["packages"])
  File "/usr/lib/obs/service/node_modules", line 318, in collect_v3_deps
    raise Exception("unexpected module key: " + module)
Exception: unexpected module key: make
Aborting: service call failed:  /usr/lib/obs/service/node_modules --cpio node_modules.obscpio --output node_modules.spec.inc --source-offset 10000 --outdir /home/ben/src/osc/devel:languages:python:numeric/python-bokeh/tmp6sfw2iag.node_modules.service

As per the instructions, the package-lock.json is created by running npm install --package-lock-only --legacy-peer-deps --ignore-scripts inside bokehjs

:memo: package-lock.json

AdamMajer commented 5 days ago

This package is using workspaces. I wonder if this somehow has something to do here. I'll look into this