platform_build_blueprint/proptools
Cole Faust 7add62142d Enforce that providers are not changed
When setProvider() is called, hash the provider and store the hash in
the module. Then after the build is done, hash all the providers again
and compare the hashes. It's an error if they don't match.

Also add a flag to control it in case this check gets slow as we convert
more things to providers. However right now it's fast (unnoticable
in terms of whole seconds) so just have the flag always enabled.

Bug: 322069292
Test: m nothing
Change-Id: Ie4e806a6a9f20542ffcc7439eef376d3fb6a98ca
2024-01-30 15:18:24 -08:00
..
clone.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
clone_test.go Fix TestCloneProperties for go 1.21 2023-11-08 22:07:58 -08:00
escape.go Optimize NinjaEscapeList to avoid allocating an output slice 2023-11-01 15:15:16 -07:00
escape_test.go Fix TestExternalShellEscaping and TestExternalShellEscapeIncludingSpaces on darwin 2023-12-15 16:30:59 -08:00
extend.go Add proptools helper functions. 2022-01-11 10:21:05 -05:00
extend_test.go Support AppendMatchingProperties on an embedded anonymous struct 2021-06-28 17:08:52 -07:00
filter.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
filter_test.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
hash_provider.go Enforce that providers are not changed 2024-01-30 15:18:24 -08:00
hash_provider_test.go Enforce that providers are not changed 2024-01-30 15:18:24 -08:00
proptools.go Add a new util to clear a property 2023-12-04 11:01:23 +09:00
proptools_test.go Add a new util to clear a property 2023-12-04 11:01:23 +09:00
tag.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go Remove unnecessary used names before reporting 2024-01-04 12:24:39 -08:00
unpack_test.go Remove unnecessary used names before reporting 2024-01-04 12:24:39 -08:00