Files
Jihoon Kang 9ac9b00b6a Fix non-deterministic missing deps from OnceSourcePath
Soong caches the output of `PathForSource` when used with
`OnceSourcePath`. When `AllowMissingDependencies` is true,
`PathForSource` is used to record the missing dependencies of each
module context.

This leads to non-deterministic behavior as the first module that
populates the cache via the Once* key successfully records the missing
dependency, but the subsequent modules that hit the cache do not.

This change fixes the issue by only caching the string in `Once`,
and invoking `PathForSource` for every module context.
This ensures that every module correctly evaluates the path and records
the missing dependencies correctly.

Bug: 483125122
Test: OUT_DIR=out build/soong/tests/build_action_caching_test.sh
Change-Id: Ia95447de8b41bd75f465c12d0c23c0ee71476f25
2026-03-27 18:29:54 +00:00
..
2025-10-04 07:35:24 +00:00
2025-10-04 07:35:24 +00:00