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

Update rules closure #15

Closed
wants to merge 28 commits into from
Closed

Update rules closure #15

wants to merge 28 commits into from

Conversation

benmcginnis
Copy link
Member

this change syncs our changes with the rules_closure origin

kevinoconnor7 and others added 28 commits July 7, 2023 13:27
* Upgrade rules_go

* Update gazelle
Updates dom_test.js to not use goog.html.SafeHtml as goog.html.SafeHtml is deprecated.
Legacy struct providers have been deprecated by Bazel. Replacing them with modern providers, will make it possible to simplify and remove legacy handling from Bazel.
Legacy struct providers have been deprecated by Bazel.
The "to_proto" method on Starlark structs is deprecated and shouldn't be used.
Instead, the proto module's "encode_text" function should be used.
(https://bazel.build/rules/lib/toplevel/proto)

It, along with "to_json", can be disabled in Bazel using the flag
--incompatible_struct_has_no_methods

The underlying implementation is the same, so there should be no observable
changes in final outputs.
This follows a more common provider approach where rules are
responsible for providing supplier to helper functions vs. helper
functions trying make it workaround with a mix of targets and
providers.

This also unbundles provider extraction from unfurl to remove
implicit and optional behaviors behind it.
 - Add CheckTypeSummaryWarningsGuard to ignore errors from ijs files.
 - Wrap modules in goog.modules for ijs files and sort them.
 - Add input delimiters to help with debugging.
@benmcginnis benmcginnis deleted the update_rules_closure branch September 23, 2024 13:46
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.

8 participants