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

Fix paths issue with transitive excludes. #18396

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

kaos
Copy link
Member

@kaos kaos commented Mar 2, 2023

Error for test before the fix was:

E       pants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:
E
E       Engine traceback:
E         in select
E           ..
E         in pants.backend.project_info.paths.paths
E           `paths` goal
E
E       Traceback (most recent call last):
E         File "/private/var/folders/y2/6t5bbk554wv5h6w_qlgpcpnm0000gr/T/pants-sandbox-gbcg46/src/python/pants/engine/internals/selectors.py", line 623, in native_engine_generator_send
E           res = rule.send(arg) if err is None else rule.throw(throw or err)
E         File "/private/var/folders/y2/6t5bbk554wv5h6w_qlgpcpnm0000gr/T/pants-sandbox-gbcg46/src/python/pants/backend/project_info/paths.py", line 133, in paths
E           for path in find_paths_breadth_first(adjacency_lists, root.address, destination.address):
E         File "/private/var/folders/y2/6t5bbk554wv5h6w_qlgpcpnm0000gr/T/pants-sandbox-gbcg46/src/python/pants/backend/project_info/paths.py", line 73, in find_paths_breadth_first
E           for dep in adjacency_lists[target]:
E       KeyError: Address(3rdparty#lib-pluginA)

@kaos kaos added the category:bugfix Bug fixes for released features label Mar 2, 2023
@kaos kaos enabled auto-merge (squash) March 2, 2023 22:32
@kaos kaos merged commit eda02af into pantsbuild:main Mar 2, 2023
@kaos kaos deleted the paths-bug branch March 3, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants