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

crate.select() support #1977

Merged
merged 24 commits into from
Dec 27, 2023
Merged

Conversation

rickvanprim
Copy link
Contributor

@rickvanprim rickvanprim commented May 23, 2023

Updates crate.annotation() to support crate.select().

Also includes a bunch of hopefully desirable cleanups, like removing the serialize_starlark() workaround that was no longer necessary.

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Seems pretty awesome! Can you add some tests/examples?

@rickvanprim rickvanprim force-pushed the annotation_select branch 3 times, most recently from b37785a to 139ff20 Compare December 8, 2023 20:15
@rickvanprim rickvanprim changed the title feature: crate.annotation() SelectList/SelectDict support crate.select() support Dec 8, 2023
@rickvanprim rickvanprim force-pushed the annotation_select branch 14 times, most recently from ee5606f to 37a6ed2 Compare December 15, 2023 20:23
@rickvanprim rickvanprim marked this pull request as ready for review December 15, 2023 20:24
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.

This looks great! I haven't looked thoroughly at the tests in the starlark/select_* files yet, but otherwise this is looking really solid and pretty much ready to merge.

The comments I've labelled "very non-blocking" are "let's talk about whether in the future we should think about this" questions, and definitely not "let's do this in this PR" questions :)

crate_universe/src/config.rs Show resolved Hide resolved
crate_universe/src/config.rs Outdated Show resolved Hide resolved
crate_universe/src/context/crate_context.rs Show resolved Hide resolved
crate_universe/src/rendering.rs Outdated Show resolved Hide resolved
crate_universe/src/utils/target_triple.rs Outdated Show resolved Hide resolved
crate_universe/src/select.rs Show resolved Hide resolved
crate_universe/src/select.rs Outdated Show resolved Hide resolved
crate_universe/src/utils/starlark/select_dict.rs Outdated Show resolved Hide resolved
@rickvanprim
Copy link
Contributor Author

I've hopefully addressed most things here. Unfortunately hit a few things that need your input. Feel free to make any changes you consider necessary to merge, or I can make them tomorrow 🙂

@rickvanprim rickvanprim force-pushed the annotation_select branch 3 times, most recently from 543835a to cde8309 Compare December 22, 2023 17:34
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.

LGTM, thanks!

@illicitonion illicitonion dismissed UebelAndre’s stale review December 27, 2023 14:37

Has been re-implemented and now has good test coverage

@illicitonion illicitonion merged commit 978d7a0 into bazelbuild:main Dec 27, 2023
3 checks passed
@rickvanprim rickvanprim deleted the annotation_select branch December 27, 2023 17:28
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

3 participants