You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when attempted to generate the sources with the latest version of flatpak-node-generator the whole thing blows up with the following output
Found 1 lockfiles.
Reading packages from lockfiles...
Traceback (most recent call last):
File "/home/luna/.local/bin/flatpak-node-generator", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/luna/.local/share/pipx/venvs/flatpak-node-generator/lib/python3.11/site-packages/flatpak_node_generator/main.py", line 277, in main
asyncio.run(_async_main())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/luna/.local/share/pipx/venvs/flatpak-node-generator/lib/python3.11/site-packages/flatpak_node_generator/main.py", line 198, in _async_main
packages.update(lockfile_provider.process_lockfile(lockfile))
File "/home/luna/.local/share/pipx/venvs/flatpak-node-generator/lib/python3.11/site-packages/flatpak_node_generator/providers/yarn.py", line 106, in process_lockfile
for name_line, package in self.parse_lockfile(lockfile).items():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/luna/.local/share/pipx/venvs/flatpak-node-generator/lib/python3.11/site-packages/flatpak_node_generator/providers/yarn.py", line 68, in parse_lockfile
key, value = shlex.split(line)
^^^^^^^^^^
ValueError: too many values to unpack (expected 2)
I'm not to sure why this is happening any pointers would be helpful
The text was updated successfully, but these errors were encountered:
The problem as we can see is that it splits it on spaces, therefore we do not have 2 return values of shlex.split(line) but for example on "@babel/core": ^7.4.0 || ^8.0.0-0 <8.0.0 we would get: ['@babel/core:', '^7.4.0', '||', '^8.0.0-0', '<8.0.0'].
The issue no longer occurs when applying the #252 pull request to my install.
flatpak-builder version
1.4.0
Linux distribution and version
arch linux
Affected flatpak-builder tool
node/flatpak-node-generator.py
flatpak-builder tool cli args
No response
Source repository URL
https://github.com/h3poteto/whalebird-desktop
Flatpak-builder manifest URL
No response
Description
when attempted to generate the sources with the latest version of
flatpak-node-generator
the whole thing blows up with the following outputI'm not to sure why this is happening any pointers would be helpful
The text was updated successfully, but these errors were encountered: