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

PanicError when duplicate layers are passed to find_illegal_dependencies #165

Open
seddonym opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@seddonym
Copy link
Owner

seddonym commented Oct 22, 2024

E.g.

>>> import grimp
>>> g = grimp.build_graph("grimp")
>>> graph.find_illegal_dependencies_for_layers(layers=("grimp.domain", "grimp.domain"))
thread '<unnamed>' panicked at src/importgraph.rs:144:63:
no entry found for key
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/.../grimp/adaptors/graph.py", line 372, in find_illegal_dependencies_for_layers
    return _layers.find_illegal_dependencies(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.../grimp/adaptors/_layers.py", line 46, in find_illegal_dependencies
    rust_package_dependency_tuple = rust.find_illegal_dependencies(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: no entry found for key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant