Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node: Generic error KeyError: 'resolved' #358

Open
spazziale opened this issue Apr 19, 2023 · 5 comments
Open

Node: Generic error KeyError: 'resolved' #358

spazziale opened this issue Apr 19, 2023 · 5 comments

Comments

@spazziale
Copy link

flatpak-builder version

1.3.3

Linux distribution and version

Fedora 38

Affected flatpak-builder tool

node/flatpak-node-generator.py

flatpak-builder tool cli args

yarn -r yarn.lock

Source repository URL

https://github.com/open-duelyst/duelyst

Flatpak-builder manifest URL

No response

Description

flatpak-node-generator yarn -r yarn.lock:


Found 2 lockfiles.
Reading packages from lockfiles...
Traceback (most recent call last):
  File "/home/marco/.local/bin/flatpak-node-generator", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/marco/.local/pipx/venvs/flatpak-node-generator/lib64/python3.11/site-packages/flatpak_node_generator/main.py", line 277, in main
    asyncio.run(_async_main())
  File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/marco/.local/pipx/venvs/flatpak-node-generator/lib64/python3.11/site-packages/flatpak_node_generator/main.py", line 198, in _async_main
    packages.update(lockfile_provider.process_lockfile(lockfile))
  File "/home/marco/.local/pipx/venvs/flatpak-node-generator/lib64/python3.11/site-packages/flatpak_node_generator/providers/yarn.py", line 107, in process_lockfile
    yield self.process_package(lockfile, name_line, package)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/marco/.local/pipx/venvs/flatpak-node-generator/lib64/python3.11/site-packages/flatpak_node_generator/providers/yarn.py", line 92, in process_package
    if self.is_git_version(entry['resolved']):
                           ~~~~~^^^^^^^^^^^^
KeyError: 'resolved'
@spazziale spazziale added the bug label Apr 19, 2023
@vixalien
Copy link

have this error too. did you manage to fix it?

@spazziale
Copy link
Author

have this error too. did you manage to fix it?

Sadly no

@jwillikers
Copy link

Same issue

@daviddavo
Copy link

Tried both with Python 3.11 and 3.10. Same issue here.

@daviddavo
Copy link

I added some prints to the file to know which package failed. It was a package in a folder, with an entry like this:

tldraw-logseq@../apps/tldraw-logseq:
  version "0.0.0-dev"

It really doesn't have a resolved (nor integrity) field

@hfiguiere hfiguiere added the node label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants