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

Deduplicate expand_location targets in rust-project.json crate creation to avoid a bazel crash #1639

Conversation

googleson78
Copy link
Contributor

@googleson78 googleson78 commented Nov 8, 2022

There's a bug in bazel where the server crashes if it encounters duplicate entries in expand_location's targets field.

See bazelbuild/bazel#16664.

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@illicitonion
Copy link
Collaborator

LGTM - if you merge/rebase master, we can merge this one, thanks!

There's a bug in bazel where the server crashes if it encounters
duplicate entries in expand_location's targets field.
See bazelbuild/bazel#16664
@googleson78 googleson78 force-pushed the gl/ra-deduplicate-expand-targets-upstream branch from 898d129 to da4c87c Compare November 8, 2022 20:14
@googleson78
Copy link
Contributor Author

Actually, there are a few other places where this potentially might be an issue - I'll try to catch all of them.

It's actually more specific than the general ctx.expand_location
@googleson78
Copy link
Contributor Author

Took a shot - feel free to merge if you're happy with this.

@googleson78 googleson78 force-pushed the gl/ra-deduplicate-expand-targets-upstream branch from 220ea53 to bb50677 Compare November 9, 2022 14:40
@googleson78 googleson78 force-pushed the gl/ra-deduplicate-expand-targets-upstream branch from bb50677 to af4e694 Compare November 9, 2022 14:47
Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@illicitonion illicitonion merged commit aece1e3 into bazelbuild:main Nov 9, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants